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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1360
RA = 352.629, Dec = 11.0479
tmin = 591840001, tmax = 592099201
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='1608', job_status='RUN', time_executed='2021-09-29 22:38:46.255060', time_epoch_executed='1632980326.26' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1608

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1608/ft1_4FGL_J2330.5+1102_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1608/ft2_4FGL_J2330.5+1102_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1608/ft1_4FGL_J2330.5+1102_daily_bin1360.fits outfile=/scratch/kocevski/1608/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1360.fits ra=352.629 dec=11.0479 rad=12.0 tmin=591840001.0 tmax=592099201.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.28
user 5.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1608/ft1_filtered_4FGL_J2330.5+1102_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/1608/ft2_4FGL_J2330.5+1102_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/1608/ltcube_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.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/1608/ft2_4FGL_J2330.5+1102_daily_bin1360.fits
.....................!
real 11.67
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1608/ft1_filtered_4FGL_J2330.5+1102_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/1608/ft2_4FGL_J2330.5+1102_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/1608/ltcube_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.fits outfile=/scratch/kocevski/1608/expmap_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.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/1608/ltcube_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.fits
.....................!
real 190.54
user 184.92
sys 5.26

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/1608/ft1_filtered_4FGL_J2330.5+1102_daily_bin1360.fits scfile=/scratch/kocevski/1608/ft2_4FGL_J2330.5+1102_daily_bin1360.fits outfile=/scratch/kocevski/1608/cmap_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1608/ft1_filtered_4FGL_J2330.5+1102_daily_bin1360.fits scfile=/scratch/kocevski/1608/ft2_4FGL_J2330.5+1102_daily_bin1360.fits outfile=/scratch/kocevski/1608/cmap_HighResolution_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.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/1608/ft1_filtered_4FGL_J2330.5+1102_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/1608/ft2_4FGL_J2330.5+1102_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1608/Model_4FGL_J2330.5+1102_daily_bin1360.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/1608/ft1_filtered_4FGL_J2330.5+1102_daily_bin1360.fits.....................!
real 70.41
user 69.07
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .66919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11598E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .66860E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .55164E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97722       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=   6310.240     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     2729 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.701        36.370        .64437E-04    .69726E-04
   2  Prefactor     .10000E-03    15.593        .18142E-02** at limit **
   3  Prefactor     .66919        .18804        .17139E-04    .21373E-02
   4  Prefactor     .10000E-03    12.653        .18142E-02** at limit **
   5  Prefactor     .10000E-03    4.0035        .15462E-02** at limit **
   6  Prefactor     2.1026        21.191        .28480E-03    .48940E-04
   7  Prefactor     .10000E-03    22.538        .18142E-02** at limit **
   8  Prefactor     2.6612        6.5479        .25002E-03    .33631E-03
   9  Prefactor     .10000E-03    3.3856        .14253E-02** at limit **
  10  Prefactor     .10000E-03    16.940        .18142E-02** at limit **
  11  Prefactor     .10013E-03    201.63        .18142E-02** at limit **
  12  norm          5.3259        6.8553        .17409E-03    .31320E-03
  13  Prefactor     .10000E-03    4.0926        .15596E-02** at limit **
  14  Prefactor     .10002E-03    21.257        .98714E-01** at limit **
  15  norm          .10000E-03    82.770        .55394E-02** at limit **
  16  Prefactor     5.6958        39.146        .16826E-03    .72771E-04
  17  Prefactor     .10159E-03    22.092        .93393E-01** at limit **
  18  Prefactor     .10000E-03    2.4493        .12088E-02** at limit **
  19  Normalizat    1.1287        .25045        .29457E-03    .37404E-03
  20  Prefactor     .97723        .15370        .19779E-03    .72685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.7009
  Prefactor  = 0.0001
  Prefactor  = 0.669194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.10261
  Prefactor  = 0.0001
  Prefactor  = 2.66121
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100131
  norm       = 5.32589
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.000100002
  Prefactor  = 5.69583
  Prefactor  = 0.000101592
  Prefactor  = 0.0001
  Normalizat = 1.12871
  Prefactor  = 0.977228
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.701        36.370        .12887E-04   -1.4463    
   2  Prefactor     .10000E-03    15.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .66919        .18803        .68554E-06   -1.5544    
   4  Prefactor     .10000E-03    12.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0043        .30923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1026        21.179        .11392E-04   -1.5418    
   7  Prefactor     .10000E-03    22.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6612        6.5460        .10001E-04   -1.5382    
   9  Prefactor     .10000E-03    3.3858        .28505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10013E-03    201.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3259        6.8548        .69635E-05   -1.5246    
  13  Prefactor     .10000E-03    4.0938        .31192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    20.278        .10218       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    85.141        .22158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6958        39.142        .67302E-05   -1.5231    
  17  Prefactor     .10159E-03    20.412        .98391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4497        .24176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1287        .25063        .58915E-04   -.88835    
  20  Prefactor     .97723        .15380        .39557E-04   -.93492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40069e-09
Minuit parameter uncertainties:
  1  36.3912
  2  2.36152e-05
  3  0.188033
  4  1.05821e-05
  5  3.5432e-05
  6  13.352
  7  0.000130176
  8  6.54779
  9  1.31044e-05
  10  0.000269091
  11  0.0103004
  12  6.85579
  13  2.64152e-05
  14  0.00124947
  15  0.00087362
  16  29.8904
  17  0.0114038
  18  6.94525e-06
  19  0.250898
  20  0.153871
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.642e-05  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.772e-01  1.539e-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.129e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1608/likelihoodResults_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.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): 102
logL (Free Index) = 6310.24072696
delta logL = -0.001164507461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6310.23956652
delta logL = -4.07350944442e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11349E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7523       1.0000          .0000       10.000    
     3 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97759       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=   6310.240     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      263 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.6787        .66235E-01** at limit **
   2  Index         2.1007        7.5740        .50000        .15996E-06
   3  Normalizat    1.1287        .41513E-02    .29457E-03    .31869E-02
   4  Prefactor     .97723        .26295E-02    .19779E-03    .48726E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 2.10074
  Normalizat = 1.12871
  Prefactor  = 0.977232
 **********
 **   18 **HESSE 
 **********

 FCN=   6310.240     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    144.27        .32672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1007        8.7950        .50000       -.61855    
   3  Normalizat    1.1287        .23504E-01    .58915E-04   -.88835    
   4  Prefactor     .97723        .14888E-01    .39557E-04   -.93492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0813e-08
Minuit parameter uncertainties:
  1  0.00293667
  2  402.045
  3  0.0235046
  4  0.0148884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1608': 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): 102
logL (Free Index) = 6310.23955666
delta logL = 5.78999424761e-06

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.937e-03  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.101e+00  4.020e+02  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.772e-01  1.489e-02  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.129e+00  2.350e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.629 11.048

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/1608/cmap_HighResolution_591840001_592099201_4FGL_J2330.5+1102_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-29 22:51:52.533443', job_id='1608', GAL2='0.98', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632981112.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1360' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:51:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 1608: <4FGL_J2330.5+1102_daily_bin1360> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1360> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:35:50 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:35:52 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:35:52 2021
Terminated at Wed Sep 29 22:51:53 2021
Results reported at Wed Sep 29 22:51:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1360 352.629 11.0479 591840001 592099201 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 :                                   651.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             205.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

