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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin775
RA = 352.629, Dec = 11.0479
tmin = 440208001, tmax = 440467201
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='998875', job_status='RUN', time_executed='2021-09-29 22:28:37.132869', time_epoch_executed='1632979717.13' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998875/ft1_4FGL_J2330.5+1102_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998875/ft2_4FGL_J2330.5+1102_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998875/ft1_4FGL_J2330.5+1102_daily_bin775.fits outfile=/scratch/kocevski/998875/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin775.fits ra=352.629 dec=11.0479 rad=12.0 tmin=440208001.0 tmax=440467201.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.42
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998875/ft2_4FGL_J2330.5+1102_daily_bin775.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/998875/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/998875/ft1_filtered_4FGL_J2330.5+1102_daily_bin775.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/998875/ft1_filtered_4FGL_J2330.5+1102_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/998875/ft2_4FGL_J2330.5+1102_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/998875/ltcube_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.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/998875/ft2_4FGL_J2330.5+1102_daily_bin775.fits
.....................!
real 11.63
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998875/ft1_filtered_4FGL_J2330.5+1102_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/998875/ft2_4FGL_J2330.5+1102_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/998875/ltcube_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.fits outfile=/scratch/kocevski/998875/expmap_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.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/998875/ltcube_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.fits
.....................!
real 189.74
user 185.32
sys 4.09

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/998875/ft1_filtered_4FGL_J2330.5+1102_daily_bin775.fits scfile=/scratch/kocevski/998875/ft2_4FGL_J2330.5+1102_daily_bin775.fits outfile=/scratch/kocevski/998875/cmap_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998875/ft1_filtered_4FGL_J2330.5+1102_daily_bin775.fits scfile=/scratch/kocevski/998875/ft2_4FGL_J2330.5+1102_daily_bin775.fits outfile=/scratch/kocevski/998875/cmap_HighResolution_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.668       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0952       1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5734       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6791       1.0000         .10000E-03   10000.    
    15 'norm      '    17.582       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9970       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71493       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0034       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=   10019.26     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1749 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.707        56.473        .38901E-04   -.15124E-04
   2  Prefactor     .10000E-03    8.4947        .22671E-06** at limit **
   3  Prefactor     11.780        .55094       -.18919E-06    .31259E-02
   4  Prefactor     .10000E-03    36.159        .10962E-04** at limit **
   5  Prefactor     3.4081        6.1329       -.12619E-05   -.29810E-03
   6  Prefactor     7.0962        11.420       -.19218E-05   -.63152E-04
   7  Prefactor     35.218        24.529        .16430E-06    .69063E-04
   8  Prefactor     8.0971        9.0325        .68983E-06   -.95986E-04
   9  Prefactor     .10000E-03    3.4962       -.96229E-07** at limit **
  10  Prefactor     22.418        24.424       -.10115E-04    .59271E-05
  11  Prefactor     9.5020        35.175       -.17116E-03    .32146E-04
  12  norm          6.7201        7.4358        .19113E-05    .10441E-04
  13  Prefactor     .10000E-03    5.3670       -.42918E-06** at limit **
  14  Prefactor     2.6664        29.106       -.18497E-04   -.77302E-04
  15  norm          17.581        14.141       -.85545E-06    .27548E-04
  16  Prefactor     .10000E-03    18.159       -.16731E-05** at limit **
  17  Prefactor     37.476        21.525       -.24986E-05    .67905E-04
  18  Prefactor     9.9939        7.6634       -.22163E-05   -.26800E-04
  19  Normalizat    .71544        .22562        .71183E-05    .10419E-03
  20  Prefactor     1.0032        .13846        .34635E-05   -.18914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.7072
  Prefactor  = 0.0001
  Prefactor  = 11.7805
  Prefactor  = 0.0001
  Prefactor  = 3.40815
  Prefactor  = 7.09619
  Prefactor  = 35.2176
  Prefactor  = 8.09708
  Prefactor  = 0.0001
  Prefactor  = 22.4178
  Prefactor  = 9.50197
  norm       = 6.72009
  Prefactor  = 0.0001
  Prefactor  = 2.66641
  norm       = 17.5808
  Prefactor  = 0.0001
  Prefactor  = 37.4763
  Prefactor  = 9.99394
  Normalizat = 0.71544
  Prefactor  = 1.0032
 **********
 **   18 **HESSE 
 **********

 FCN=   10019.26     FROM HESSE     STATUS=OK           297 CALLS     2046 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.707        56.516        .22359E-03   -1.3909    
   2  Prefactor     .10000E-03    8.5016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.780        .55127        .15230E-04   -1.5021    
   4  Prefactor     .10000E-03    36.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4081        6.1241        .21915E-03   -1.5339    
   6  Prefactor     7.0962        11.417        .15060E-03   -1.5175    
   7  Prefactor     35.218        24.543        .67528E-04   -1.4520    
   8  Prefactor     8.0971        8.9876        .14089E-03   -1.5139    
   9  Prefactor     .10000E-03    3.5024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.418        24.364        .84582E-04   -1.4761    
  11  Prefactor     9.5020        35.235        .12952E-03   -1.5091    
  12  norm          6.7201        7.4090        .15480E-03   -1.5189    
  13  Prefactor     .10000E-03    5.5066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6664        29.122        .24896E-03   -1.5381    
  15  norm          17.581        14.141        .95518E-04   -1.4869    
  16  Prefactor     .10000E-03    18.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.476        21.535        .65467E-04   -1.4483    
  18  Prefactor     9.9939        7.6771        .12673E-03   -1.5076    
  19  Normalizat    .71544        .25623        .46527E-03   -1.0329    
  20  Prefactor     1.0032        .15906        .25230E-03   -.92623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30506e-10
Minuit parameter uncertainties:
  1  56.5532
  2  1.71948e-05
  3  0.551267
  4  0.000227883
  5  6.12523
  6  11.4206
  7  24.5501
  8  8.98906
  9  4.87026e-06
  10  24.3748
  11  35.3121
  12  7.40998
  13  8.57155e-05
  14  17.6347
  15  14.1433
  16  0.000111468
  17  21.5396
  18  7.6779
  19  0.256656
  20  0.159135
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  8.572e-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:  1.003e+00  1.591e-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:  7.154e-01  2.567e-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: 8.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998875/likelihoodResults_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.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) = 10019.2588989
delta logL = -0.000866570335347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10019.2580325
delta logL = -9.97806637315e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7624       1.0000          .0000       10.000    
     3 'Normalizat'    .71527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0033       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=   10019.26     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      250 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10195E-03    32.600        .36285E-02** at limit **
   2  Index         2.6899        7.4930        .50000        .27397E-04
   3  Normalizat    .71544        .12751E-01    .46527E-03    .12315E-03
   4  Prefactor     1.0032        .81478E-02    .25230E-03    .18953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101948
  Index      = 2.68994
  Normalizat = 0.715438
  Prefactor  = 1.0032
 **********
 **   18 **HESSE 
 **********

 FCN=   10019.26     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10195E-03    149.04        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6899        5.7507        .50000       -.48026    
   3  Normalizat    .71544        .27838E-01    .18611E-04   -1.0329    
   4  Prefactor     1.0032        .17789E-01    .50459E-04   -.92623    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.41532e-08
Minuit parameter uncertainties:
  1  0.0341612
  2  447.506
  3  0.0278386
  4  0.0177892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998875': 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) = 10019.2580318
delta logL = 5.67189999856e-07

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.019e-04  3.416e-02  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.690e+00  4.475e+02  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.003e+00  1.779e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.154e-01  2.784e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/998875/cmap_HighResolution_440208001_440467201_4FGL_J2330.5+1102_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2021-09-29 22:41:57.384700', job_id='998875', GAL2='1.00', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632980517.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='775' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 998875: <4FGL_J2330.5+1102_daily_bin775> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin775> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 22:25:35 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:25:35 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:25:35 2021
Terminated at Wed Sep 29 22:41:58 2021
Results reported at Wed Sep 29 22:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin775 352.629 11.0479 440208001 440467201 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 :                                   800.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

