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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1470
RA = 352.629, Dec = 11.0479
tmin = 620352001, tmax = 620611201
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='1752', job_status='RUN', time_executed='2021-09-29 22:39:52.483403', time_epoch_executed='1632980392.48' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1752/ft1_4FGL_J2330.5+1102_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1752/ft2_4FGL_J2330.5+1102_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1752/ft1_4FGL_J2330.5+1102_daily_bin1470.fits outfile=/scratch/kocevski/1752/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1470.fits ra=352.629 dec=11.0479 rad=12.0 tmin=620352001.0 tmax=620611201.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 4.87
user 4.67
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1752/ft1_filtered_4FGL_J2330.5+1102_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/1752/ft2_4FGL_J2330.5+1102_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/1752/ltcube_620352001_620611201_4FGL_J2330.5+1102_daily_bin1470.fits outfile=/scratch/kocevski/1752/expmap_620352001_620611201_4FGL_J2330.5+1102_daily_bin1470.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/1752/ltcube_620352001_620611201_4FGL_J2330.5+1102_daily_bin1470.fits
.....................!
real 189.48
user 184.63
sys 4.55

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/1752/ft1_filtered_4FGL_J2330.5+1102_daily_bin1470.fits scfile=/scratch/kocevski/1752/ft2_4FGL_J2330.5+1102_daily_bin1470.fits outfile=/scratch/kocevski/1752/cmap_620352001_620611201_4FGL_J2330.5+1102_daily_bin1470.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1609       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    88.456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38562E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40607E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .81315       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.900       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3755       1.0000         .10000E-03   10000.    
    15 'norm      '    21.927       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.553       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.535       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1198       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80607       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=   6083.428     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     2719 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.674        .18142E-02** at limit **
   2  Prefactor     8.1605        11.198        .14034E-03    .87487E-05
   3  Prefactor     .35120        .15642        .19962E-04    .10223E-02
   4  Prefactor     88.450        50.371        .42720E-04    .62272E-04
   5  Prefactor     .10000E-03    4.6934        .16400E-02** at limit **
   6  Prefactor     .10000E-03    7.1464        .18142E-02** at limit **
   7  Prefactor     .10000E-03    9.8875        .18142E-02** at limit **
   8  Prefactor     .10287E-03    8.7050        .54593E-01** at limit **
   9  Prefactor     .10000E-03    5.7629        .18142E-02** at limit **
  10  Prefactor     .10007E-03    212.11        .65418E-02** at limit **
  11  Prefactor     .88843        45.669        .15542        .16705E-03
  12  norm          .10000E-03    4.5034        .16129E-02** at limit **
  13  Prefactor     21.903        10.164        .85591E-04    .10174E-03
  14  Prefactor     2.3692        56.125        .26581E-03   -.46448E-04
  15  norm          21.924        16.999        .85537E-04    .25250E-03
  16  Prefactor     44.553        38.456        .60064E-04    .87559E-04
  17  Prefactor     18.575        26.915        .93031E-04    .30307E-04
  18  Prefactor     .10000E-03    3.4850        .14141E-02** at limit **
  19  Normalizat    1.1197        .25782        .29604E-03    .41681E-03
  20  Prefactor     .80616        .14383        .20420E-03    .11046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.16048
  Prefactor  = 0.351203
  Prefactor  = 88.4497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102874
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.888428
  norm       = 0.0001
  Prefactor  = 21.9033
  Prefactor  = 2.36919
  norm       = 21.9245
  Prefactor  = 44.5528
  Prefactor  = 18.5747
  Prefactor  = 0.0001
  Normalizat = 1.11968
  Prefactor  = 0.806157
 **********
 **   18 **HESSE 
 **********

 FCN=   6083.428     FROM HESSE     STATUS=OK           291 CALLS     3010 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1605        11.198        .56137E-05   -1.5137    
   3  Prefactor     .35120        .15642        .79847E-06   -1.5589    
   4  Prefactor     88.450        50.369        .85440E-05   -1.3824    
   5  Prefactor     .10000E-03    4.6951        .32801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10287E-03    7.7749        .58693E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    219.45        .26167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .88843        44.704        .15799       -1.5519    
  12  norm          .10000E-03    4.5038        .32259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.903        10.163        .34236E-05   -1.4772    
  14  Prefactor     2.3692        56.098        .10632E-04   -1.5400    
  15  norm          21.924        16.998        .17107E-04   -1.4771    
  16  Prefactor     44.553        38.455        .12013E-04   -1.4372    
  17  Prefactor     18.575        26.914        .37212E-05   -1.4846    
  18  Prefactor     .10000E-03    3.4860        .28282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1197        .25792        .59208E-04   -.89122    
  20  Prefactor     .80616        .14395        .81680E-05   -.99502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65676e-09
Minuit parameter uncertainties:
  1  7.26974e-06
  2  11.2005
  3  0.156418
  4  50.3931
  5  1.8442e-05
  6  6.29732e-06
  7  9.49628e-06
  8  0.00945511
  9  9.35201e-06
  10  0.00791967
  11  12.6134
  12  1.8287e-05
  13  10.1641
  14  23.0809
  15  17.002
  16  38.4765
  17  26.9316
  18  5.6985e-06
  19  0.258215
  20  0.144013
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.190e+01  1.016e+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.062e-01  1.440e-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.120e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.94
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 7.12e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.61e-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) = 6083.41199165
delta logL = 0.0159980317712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6083.4039085
delta logL = 0.0240811820368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.355       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6729       1.0000          .0000       10.000    
     3 'Normalizat'    1.1303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80174       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=   6083.404     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      250 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.352        12.679        .82885E-04    .71187E-04
   2  Index         2.6737        .52247        .63053E-02    .30389E-03
   3  Normalizat    1.1302        .24704        .29489E-03   -.53973E-04
   4  Prefactor     .80184        .14398        .20470E-03    .10191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3521
  Index      = 2.67374
  Normalizat = 1.1302
  Prefactor  = 0.801844
 **********
 **   18 **HESSE 
 **********

 FCN=   6083.404     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.352        12.445        .33154E-05   -1.4741    
   2  Index         2.6737        .51246        .12611E-02   -.48392    
   3  Normalizat    1.1302        .24721        .11796E-04   -.88788    
   4  Prefactor     .80184        .14406        .81878E-05   -.99660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04196e-11
Minuit parameter uncertainties:
  1  12.4468
  2  0.513614
  3  0.247463
  4  0.144129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1752': 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) = 6083.40390678
delta logL = 0.0240828939686

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.335e+01  1.245e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.674e+00  5.136e-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.018e-01  1.441e-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.130e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.93
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.67 +/- 0.51
Photon Flux (Free Index): 1.44e-07 +/- 8.18e-08
Energy Flux (Free Index): 3.53e-05 +/- 1.68e-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/1752/cmap_HighResolution_620352001_620611201_4FGL_J2330.5+1102_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='3.53e-05', photon_flux_error='7.12e-08', dlogl='2.41e-02', energy_flux='3.47e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-29 22:50:19.691886', photon_index_error2='0.51', photon_index2='2.67', ts='9.94', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.12', time_epoch_completed='1632981019.69', return_code='0', job_id='1752', GAL2='0.80', EG2='1.13', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='8.18e-08', ts2='9.93', photon_index='2.79' WHERE bin_id='1470' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:50:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 1752: <4FGL_J2330.5+1102_daily_bin1470> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1470 352.629 11.0479 620352001 620611201 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 :                                   570.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

