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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1136
RA = 352.629, Dec = 11.0479
tmin = 533779201, tmax = 534038401
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='1274', job_status='RUN', time_executed='2021-09-29 22:36:02.795384', time_epoch_executed='1632980162.8' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1274/ft1_4FGL_J2330.5+1102_daily_bin1136.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1274/ft2_4FGL_J2330.5+1102_daily_bin1136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1274/ft1_4FGL_J2330.5+1102_daily_bin1136.fits outfile=/scratch/kocevski/1274/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1136.fits ra=352.629 dec=11.0479 rad=12.0 tmin=533779201.0 tmax=534038401.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 2.73
user 2.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1274/ft1_filtered_4FGL_J2330.5+1102_daily_bin1136.fits" evtable="EVENTS" scfile=/scratch/kocevski/1274/ft2_4FGL_J2330.5+1102_daily_bin1136.fits sctable="SC_DATA" outfile=/scratch/kocevski/1274/ltcube_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.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/1274/ft2_4FGL_J2330.5+1102_daily_bin1136.fits
.....................!
real 9.16
user 8.87
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1274/ft1_filtered_4FGL_J2330.5+1102_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/1274/ft2_4FGL_J2330.5+1102_daily_bin1136.fits sctable="SC_DATA" expcube=/scratch/kocevski/1274/ltcube_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.fits outfile=/scratch/kocevski/1274/expmap_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.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/1274/ltcube_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.fits
.....................!
real 146.19
user 142.22
sys 3.74

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/1274/ft1_filtered_4FGL_J2330.5+1102_daily_bin1136.fits scfile=/scratch/kocevski/1274/ft2_4FGL_J2330.5+1102_daily_bin1136.fits outfile=/scratch/kocevski/1274/cmap_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.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.47
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1274/ft1_filtered_4FGL_J2330.5+1102_daily_bin1136.fits scfile=/scratch/kocevski/1274/ft2_4FGL_J2330.5+1102_daily_bin1136.fits outfile=/scratch/kocevski/1274/cmap_HighResolution_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.645       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.669       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3712       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17990E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.983       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9658       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2234       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80511       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=   7823.020     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2037 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.335        27.890        .65985E-07    .14365E-04
   2  Prefactor     37.646        27.091        .58820E-07   -.24055E-05
   3  Prefactor     1.5692        .25824        .54053E-09   -.30292E-03
   4  Prefactor     11.630        30.221       -.83559E-06   -.13828E-03
   5  Prefactor     .10000E-03    3.7587        .64956E-07** at limit **
   6  Prefactor     2.3731        18.337        .10563E-05   -.12810E-04
   7  Prefactor     .10000E-03    20.017       -.23612E-06** at limit **
   8  Prefactor     .10001E-03    4.3102        .25716E-06** at limit **
   9  Prefactor     .10000E-03    2.8861       -.13094E-08** at limit **
  10  Prefactor     27.963        24.628       -.45736E-07   -.92743E-04
  11  Prefactor     .10000E-03    12.034        .15424E-07** at limit **
  12  norm          .10000E-03    2.0264        .44175E-08** at limit **
  13  Prefactor     2.7371        6.2467        .79951E-06   -.17247E-04
  14  Prefactor     .10000E-03    7.5278        .55698E-07** at limit **
  15  norm          13.780        14.100       -.26868E-07   -.13295E-04
  16  Prefactor     18.123        31.831        .30110E-06   -.25949E-05
  17  Prefactor     .10000E-03    14.839        .28152E-06** at limit **
  18  Prefactor     6.9663        7.1242        .23339E-05   -.20701E-03
  19  Normalizat    1.2233        .20210       -.80128E-06   -.42688E-04
  20  Prefactor     .80515        .11795       -.33079E-07   -.11463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3352
  Prefactor  = 37.646
  Prefactor  = 1.56924
  Prefactor  = 11.6298
  Prefactor  = 0.0001
  Prefactor  = 2.37315
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 27.9634
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.73711
  Prefactor  = 0.0001
  norm       = 13.7797
  Prefactor  = 18.123
  Prefactor  = 0.0001
  Prefactor  = 6.96628
  Normalizat = 1.22328
  Prefactor  = 0.805149
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.020     FROM HESSE     STATUS=OK           299 CALLS     2336 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.335        27.913        .75267E-04   -1.4643    
   2  Prefactor     37.646        27.188        .65323E-04   -1.4480    
   3  Prefactor     1.5692        .25935        .16877E-04   -1.5457    
   4  Prefactor     11.630        30.217        .11727E-03   -1.5026    
   5  Prefactor     .10000E-03    3.7894        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3731        18.296        .26608E-03   -1.5400    
   7  Prefactor     .10000E-03    20.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    59.439        .33221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8961        .14673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.963        23.566        .75734E-04   -1.4650    
  11  Prefactor     .10000E-03    12.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0281        .12287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7371        6.2565        .24613E-03   -1.5377    
  14  Prefactor     .10000E-03    7.5377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.780        14.102        .10790E-03   -1.4965    
  16  Prefactor     18.123        31.899        .94085E-04   -1.4856    
  17  Prefactor     .10000E-03    14.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9663        7.1249        .76002E-03   -1.5180    
  19  Normalizat    1.2233        .23660        .30017E-03   -.85886    
  20  Prefactor     .80515        .13819        .21773E-03   -.99539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17198e-10
Minuit parameter uncertainties:
  1  27.926
  2  27.1967
  3  0.259351
  4  30.2569
  5  6.47011e-08
  6  13.1839
  7  6.51991e-06
  8  0.00181947
  9  7.2951e-08
  10  23.5736
  11  2.77678e-07
  12  2.78892e-06
  13  6.25799
  14  1.38452e-06
  15  14.1053
  16  31.9286
  17  2.15971e-05
  18  7.12572
  19  0.23681
  20  0.138246
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.737e+00  6.258e+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:  8.051e-01  1.382e-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.223e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1274/likelihoodResults_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7822.22183575
delta logL = 0.798474274459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7822.19554401
delta logL = 0.824766014836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93683       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6483       1.0000          .0000       10.000    
     3 'Normalizat'    1.1482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83362       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=   7822.196     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      262 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93362        11.820        .12941E-01    .46880E-03
   2  Index         4.6509        3.4833        .15451        .91334E-04
   3  Normalizat    1.1481        .49132E-01    .69693E-01   -.23253E-03
   4  Prefactor     .83370        .29745E-01    .44153E-01   -.35314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.933625
  Index      = 4.65092
  Normalizat = 1.14807
  Prefactor  = 0.833701
 **********
 **   18 **HESSE 
 **********

 FCN=   7822.196     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93362        30.003        .67683E-03   -1.5515    
   2  Index         4.6509        7.3247        .76084E-02   -.69872E-01
   3  Normalizat    1.1481        .18716        .30836E-03   -.88223    
   4  Prefactor     .83370        .11146        .21433E-03   -.98498    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.90714e-11
Minuit parameter uncertainties:
  1  10.5905
  2  7.6103
  3  0.187266
  4  0.111489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1274': 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) = 7822.19554263
delta logL = 0.824767388074

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  9.336e-01  1.059e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  4.651e+00  7.610e+00  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.337e-01  1.115e-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.148e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 352.629 11.048
Photon Index (Free Index): 4.65 +/- 7.61
Photon Flux (Free Index): 8.14e-08 +/- 6.60e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.42e-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/1274/cmap_HighResolution_533779201_534038401_4FGL_J2330.5+1102_daily_bin1136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='8.25e-01', photon_flux2='8.14e-08', job_status='DONE', time_completed='2021-09-29 22:44:59.657856', photon_index_error2='7.61', photon_index2='4.65', ts='0.23', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.42e-05', EG='1.22', time_epoch_completed='1632980699.66', return_code='0', job_id='1274', GAL2='0.83', EG2='1.15', return_code2='102', photon_flux_error2='6.60e-08', ts2='2.01', photon_index='2.79' WHERE bin_id='1136' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:44:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 1274: <4FGL_J2330.5+1102_daily_bin1136> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1136 352.629 11.0479 533779201 534038401 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 :                                   514.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            580 sec.

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

