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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1255
RA = 352.629, Dec = 11.0479
tmin = 564624001, tmax = 564883201
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='1452', job_status='RUN', time_executed='2021-09-29 22:35:55.264554', time_epoch_executed='1632980155.26' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1452/ft1_4FGL_J2330.5+1102_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1452/ft2_4FGL_J2330.5+1102_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1452/ft1_4FGL_J2330.5+1102_daily_bin1255.fits outfile=/scratch/kocevski/1452/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1255.fits ra=352.629 dec=11.0479 rad=12.0 tmin=564624001.0 tmax=564883201.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.64
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1452/ft1_filtered_4FGL_J2330.5+1102_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/1452/ft2_4FGL_J2330.5+1102_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/1452/ltcube_564624001_564883201_4FGL_J2330.5+1102_daily_bin1255.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/1452/ft2_4FGL_J2330.5+1102_daily_bin1255.fits
.....................!
real 11.71
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1452/ft1_filtered_4FGL_J2330.5+1102_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/1452/ft2_4FGL_J2330.5+1102_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/1452/ltcube_564624001_564883201_4FGL_J2330.5+1102_daily_bin1255.fits outfile=/scratch/kocevski/1452/expmap_564624001_564883201_4FGL_J2330.5+1102_daily_bin1255.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/1452/ltcube_564624001_564883201_4FGL_J2330.5+1102_daily_bin1255.fits
.....................!
real 190.79
user 185.18
sys 5.29

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/1452/ft1_filtered_4FGL_J2330.5+1102_daily_bin1255.fits scfile=/scratch/kocevski/1452/ft2_4FGL_J2330.5+1102_daily_bin1255.fits outfile=/scratch/kocevski/1452/cmap_564624001_564883201_4FGL_J2330.5+1102_daily_bin1255.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23027       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17881E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.858       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1243       1.0000         .10000E-03   10000.    
    15 'norm      '    24.625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3326       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0872       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0110       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=   13103.54     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     1803 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.222        18.583       -.44537E-06   -.38996E-05
   2  Prefactor     .10000E-03    4.1829       -.14287E-06** at limit **
   3  Prefactor     .78424        .12892       -.11739E-08    .17530E-03
   4  Prefactor     .10000E-03    57.671       -.13696E-05** at limit **
   5  Prefactor     3.1305        4.2713       -.20176E-05   -.19919E-03
   6  Prefactor     .21662        3.8959        .46897E-06   -.39162E-03
   7  Prefactor     5.7676        10.593       -.18142E-06   -.10343E-04
   8  Prefactor     .10000E-03    2.0150        .69930E-07** at limit **
   9  Prefactor     .10000E-03    11.303        .70059E-08** at limit **
  10  Prefactor     4.5545        11.243       -.37140E-06   -.11794E-04
  11  Prefactor     .10000E-03    24.413        .54842E-06** at limit **
  12  norm          14.867        7.9986        .26737E-05    .19574E-03
  13  Prefactor     3.3840        5.3256       -.30399E-05   -.25322E-03
  14  Prefactor     9.1260        15.210       -.29255E-07    .10819E-04
  15  norm          24.624        12.408       -.12756E-06    .17535E-04
  16  Prefactor     17.997        24.428       -.85195E-05   -.40204E-04
  17  Prefactor     .10000E-03    5.1239        .45610E-07** at limit **
  18  Prefactor     2.3319        1.3681        .41119E-06   -.30504E-02
  19  Normalizat    1.0873        .15522        .11275E-05   -.27242E-04
  20  Prefactor     1.0110        .94980E-01   -.89816E-07    .89845E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2222
  Prefactor  = 0.0001
  Prefactor  = 0.784237
  Prefactor  = 0.0001
  Prefactor  = 3.13053
  Prefactor  = 0.216618
  Prefactor  = 5.76764
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.55447
  Prefactor  = 0.0001
  norm       = 14.8667
  Prefactor  = 3.38396
  Prefactor  = 9.12597
  norm       = 24.6243
  Prefactor  = 17.9967
  Prefactor  = 0.0001
  Prefactor  = 2.33191
  Normalizat = 1.08729
  Prefactor  = 1.011
 **********
 **   18 **HESSE 
 **********

 FCN=   13103.54     FROM HESSE     STATUS=OK           303 CALLS     2106 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.222        18.599        .99436E-04   -1.4902    
   2  Prefactor     .10000E-03    4.1908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .78424        .12899        .15820E-04   -1.5531    
   4  Prefactor     .10000E-03    58.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1305        4.2605        .22915E-03   -1.5354    
   6  Prefactor     .21662        62.680        .43012E-02   -1.5615    
   7  Prefactor     5.7676        10.592        .16723E-03   -1.5228    
   8  Prefactor     .10000E-03    2.0516        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.732        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5545        11.236        .18859E-03   -1.5281    
  11  Prefactor     .10000E-03    24.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.867        7.9884        .10391E-03   -1.4937    
  13  Prefactor     3.3840        5.3156        .21984E-03   -1.5340    
  14  Prefactor     9.1260        15.194        .13268E-03   -1.5104    
  15  norm          24.624        12.408        .80723E-04   -1.4715    
  16  Prefactor     17.997        24.411        .94382E-04   -1.4859    
  17  Prefactor     .10000E-03    5.1335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3319        3.9234        .13425E-02   -1.5403    
  19  Normalizat    1.0873        .18189        .31541E-03   -.90161    
  20  Prefactor     1.0110        .11134        .20394E-03   -.92364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19695e-09
Minuit parameter uncertainties:
  1  18.6057
  2  4.70868e-07
  3  0.12899
  4  0.000172172
  5  4.26091
  6  7.37563
  7  10.5959
  8  3.37137e-07
  9  0.000190662
  10  11.2415
  11  1.7745e-05
  12  7.989
  13  5.31629
  14  15.2008
  15  12.4092
  16  24.4244
  17  6.25891e-06
  18  3.9238
  19  0.182
  20  0.111366
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.384e+00  5.316e+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:  1.011e+00  1.114e-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.087e+00  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/1452/likelihoodResults_564624001_564883201_4FGL_J2330.5+1102_daily_bin1255.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) = 13103.5254739
delta logL = 0.0182987150147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13103.5206145
delta logL = 0.0231581006519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9338       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6153       1.0000          .0000       10.000    
     3 'Normalizat'    1.0892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13103.52     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      290 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9286        5.9214        .10170E-02   -.31457E-04
   2  Index         2.6137        .79439        .11982E-01    .19764E-03
   3  Normalizat    1.0893        .17685        .31514E-03   -.50289E-04
   4  Prefactor     1.0099        .11055        .20404E-03   -.83467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92856
  Index      = 2.61369
  Normalizat = 1.08933
  Prefactor  = 1.00986
 **********
 **   18 **HESSE 
 **********

 FCN=   13103.52     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9286        5.7489        .40679E-04   -1.5312    
   2  Index         2.6137        .77186        .23965E-02   -.49754    
   3  Normalizat    1.0893        .17704        .12606E-04   -.90095    
   4  Prefactor     1.0099        .11064        .81614E-05   -.92402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80696e-12
Minuit parameter uncertainties:
  1  5.74973
  2  0.775887
  3  0.177138
  4  0.110668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1452': 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) = 13103.5206111
delta logL = 0.0231615274461

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.929e+00  5.750e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.614e+00  7.759e-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:  1.010e+00  1.107e-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.089e+00  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
Ra Dec: 352.629 11.048

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/1452/cmap_HighResolution_564624001_564883201_4FGL_J2330.5+1102_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-09-29 22:50:50.512219', job_id='1452', GAL2='1.01', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632981050.51', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.32e-02', ts2='0.65', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1255' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:50:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 1452: <4FGL_J2330.5+1102_daily_bin1255> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1255 352.629 11.0479 564624001 564883201 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 :                                   877.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

