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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1106
RA = 352.629, Dec = 11.0479
tmin = 526003201, tmax = 526262401
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='1229', job_status='RUN', time_executed='2021-09-29 22:36:40.073674', time_epoch_executed='1632980200.07' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1229

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1229/ft1_4FGL_J2330.5+1102_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1229/ft2_4FGL_J2330.5+1102_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1229/ft1_4FGL_J2330.5+1102_daily_bin1106.fits outfile=/scratch/kocevski/1229/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1106.fits ra=352.629 dec=11.0479 rad=12.0 tmin=526003201.0 tmax=526262401.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 3.75
user 3.49
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1229/ft1_filtered_4FGL_J2330.5+1102_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/1229/ft2_4FGL_J2330.5+1102_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/1229/ltcube_526003201_526262401_4FGL_J2330.5+1102_daily_bin1106.fits outfile=/scratch/kocevski/1229/expmap_526003201_526262401_4FGL_J2330.5+1102_daily_bin1106.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/1229/ltcube_526003201_526262401_4FGL_J2330.5+1102_daily_bin1106.fits
.....................!
real 191.78
user 186.79
sys 4.63

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/1229/ft1_filtered_4FGL_J2330.5+1102_daily_bin1106.fits scfile=/scratch/kocevski/1229/ft2_4FGL_J2330.5+1102_daily_bin1106.fits outfile=/scratch/kocevski/1229/cmap_526003201_526262401_4FGL_J2330.5+1102_daily_bin1106.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1229/ft1_filtered_4FGL_J2330.5+1102_daily_bin1106.fits scfile=/scratch/kocevski/1229/ft2_4FGL_J2330.5+1102_daily_bin1106.fits outfile=/scratch/kocevski/1229/cmap_HighResolution_526003201_526262401_4FGL_J2330.5+1102_daily_bin1106.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.680       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45738E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54164       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.910       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.311       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.5136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.430       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9108       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98837       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90226       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=   6884.006     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2172 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.675        37.409        .16954E-05   -.44379E-04
   2  Prefactor     .10136E-03    21.945        .18230E-05** at limit **
   3  Prefactor     .54133        .18806       -.71412E-07   -.10027E-02
   4  Prefactor     45.587        40.660       -.14532E-04    .27130E-04
   5  Prefactor     1.4924        15.927       -.53260E-05   -.47856E-03
   6  Prefactor     15.893        16.155       -.36416E-05    .55924E-04
   7  Prefactor     12.310        16.304        .84980E-06    .45881E-05
   8  Prefactor     .10000E-03    4.6978       -.20891E-07** at limit **
   9  Prefactor     .10000E-03    3.4211        .24992E-06** at limit **
  10  Prefactor     20.478        19.337        .35790E-05    .44778E-04
  11  Prefactor     .10000E-03    15.854       -.40646E-06** at limit **
  12  norm          7.5081        7.8572       -.25398E-05    .33167E-05
  13  Prefactor     .10000E-03    4.7607        .15487E-07** at limit **
  14  Prefactor     .10000E-03    7.9399        .33331E-06** at limit **
  15  norm          13.454        13.135       -.10254E-05    .12142E-04
  16  Prefactor     21.337        40.423       -.43087E-04    .18761E-04
  17  Prefactor     .10000E-03    14.834        .27907E-06** at limit **
  18  Prefactor     4.9098        4.6783       -.31313E-06    .11513E-03
  19  Normalizat    .98889        .20436        .72952E-05   -.11843E-03
  20  Prefactor     .90195        .11945        .78139E-06    .17053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.675
  Prefactor  = 0.000101361
  Prefactor  = 0.541333
  Prefactor  = 45.5869
  Prefactor  = 1.49244
  Prefactor  = 15.8929
  Prefactor  = 12.3097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4779
  Prefactor  = 0.0001
  norm       = 7.50811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.4543
  Prefactor  = 21.3366
  Prefactor  = 0.0001
  Prefactor  = 4.90979
  Normalizat = 0.988895
  Prefactor  = 0.901954
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.006     FROM HESSE     STATUS=OK           303 CALLS     2475 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.675        37.497        .57474E-04   -1.4311    
   2  Prefactor     .10136E-03    25.514        .10617       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .54133        .18718        .19079E-04   -1.5561    
   4  Prefactor     45.587        40.670        .59360E-04   -1.4357    
   5  Prefactor     1.4924        15.805        .34753E-03   -1.5464    
   6  Prefactor     15.893        16.034        .10041E-03   -1.4910    
   7  Prefactor     12.310        16.307        .11417E-03   -1.5006    
   8  Prefactor     .10000E-03    4.7845        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4264        .14985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.478        19.369        .88479E-04   -1.4803    
  11  Prefactor     .10000E-03    15.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.5081        7.8554        .14631E-03   -1.5160    
  13  Prefactor     .10000E-03    4.7951        .17653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.454        13.140        .10919E-03   -1.4974    
  16  Prefactor     21.337        40.407        .86523E-04   -1.4784    
  17  Prefactor     .10000E-03    14.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9098        4.6847        .16989E-03   -1.5265    
  19  Normalizat    .98889        .23538        .31405E-03   -.93403    
  20  Prefactor     .90195        .13856        .19910E-03   -.96073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2401e-09
Minuit parameter uncertainties:
  1  37.5155
  2  0.0117886
  3  0.187182
  4  40.6943
  5  9.71639
  6  16.0378
  7  16.3125
  8  8.18455e-05
  9  1.91055e-05
  10  19.375
  11  3.81284e-05
  12  7.85643
  13  2.497e-05
  14  3.01423e-05
  15  13.1431
  16  40.4587
  17  0.000142199
  18  4.68505
  19  0.235628
  20  0.138619
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.497e-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.020e-01  1.386e-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:  9.889e-01  2.356e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1229/likelihoodResults_526003201_526262401_4FGL_J2330.5+1102_daily_bin1106.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) = 6884.00678563
delta logL = -0.000994037129203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6884.00579155
delta logL = 4.4101398089e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8014       1.0000          .0000       10.000    
     3 'Normalizat'    .98887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90199       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=   6884.006     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1117.5        .17809E-02** at limit **
   2  Index         2.8168        6.5360        .50000       -.29815E-04
   3  Normalizat    .98889        .17460        .31405E-03   -.34253E-03
   4  Prefactor     .90195        .10658        .19910E-03   -.17640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.81679
  Normalizat = 0.988894
  Prefactor  = 0.901954
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.006     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1413        .35618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8168        6.3978        .50000       -.45186    
   3  Normalizat    .98889        .22333        .12562E-04   -.93403    
   4  Prefactor     .90195        .13687        .39821E-04   -.96073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81363e-09
Minuit parameter uncertainties:
  1  0.000299273
  2  4.61801
  3  0.22354
  4  0.136919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1229': 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) = 6884.0057914
delta logL = 1.93973392015e-07

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.993e-04  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.817e+00  4.618e+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:  9.020e-01  1.369e-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:  9.889e-01  2.235e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/1229/cmap_HighResolution_526003201_526262401_4FGL_J2330.5+1102_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 22:47:52.159252', job_id='1229', GAL2='0.90', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632980872.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1106' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:47:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 1229: <4FGL_J2330.5+1102_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1106 352.629 11.0479 526003201 526262401 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 :                                   615.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

