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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1003
RA = 352.629, Dec = 11.0479
tmin = 499305601, tmax = 499564801
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='76', job_status='RUN', time_executed='2021-09-29 22:34:23.737324', time_epoch_executed='1632980063.74' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76/ft1_4FGL_J2330.5+1102_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76/ft2_4FGL_J2330.5+1102_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76/ft1_4FGL_J2330.5+1102_daily_bin1003.fits outfile=/scratch/kocevski/76/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1003.fits ra=352.629 dec=11.0479 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.47
user 5.21
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76/ft1_filtered_4FGL_J2330.5+1102_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/76/ft2_4FGL_J2330.5+1102_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/76/ltcube_499305601_499564801_4FGL_J2330.5+1102_daily_bin1003.fits outfile=/scratch/kocevski/76/expmap_499305601_499564801_4FGL_J2330.5+1102_daily_bin1003.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/76/ltcube_499305601_499564801_4FGL_J2330.5+1102_daily_bin1003.fits
.....................!
real 190.26
user 184.85
sys 5.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/76/ft1_filtered_4FGL_J2330.5+1102_daily_bin1003.fits scfile=/scratch/kocevski/76/ft2_4FGL_J2330.5+1102_daily_bin1003.fits outfile=/scratch/kocevski/76/cmap_499305601_499564801_4FGL_J2330.5+1102_daily_bin1003.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76/ft1_filtered_4FGL_J2330.5+1102_daily_bin1003.fits scfile=/scratch/kocevski/76/ft2_4FGL_J2330.5+1102_daily_bin1003.fits outfile=/scratch/kocevski/76/cmap_HighResolution_499305601_499564801_4FGL_J2330.5+1102_daily_bin1003.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/76/ft1_filtered_4FGL_J2330.5+1102_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/76/ft2_4FGL_J2330.5+1102_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/76/Model_4FGL_J2330.5+1102_daily_bin1003.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/76/ft1_filtered_4FGL_J2330.5+1102_daily_bin1003.fits.....................!
real 72.55
user 71.21
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9917       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7745       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1786       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1850       1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.095       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.679       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3734       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72816E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3868       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5736.456     FROM MIGRAD    STATUS=FAILED       685 CALLS     2579 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.291        .18142E-02** at limit **
   2  Prefactor     .10000E-03    14.806        .18142E-02** at limit **
   3  Prefactor     5.9918        .44879        .13124E-04   -.23388E-03
   4  Prefactor     36.325        49.007        .66495E-04   -.71808E-05
   5  Prefactor     .10000E-03    9.4897        .18142E-02** at limit **
   6  Prefactor     .10000E-03    10.962        .18142E-02** at limit **
   7  Prefactor     .10000E-03    12.730        .18142E-02** at limit **
   8  Prefactor     7.7757        9.2308        .71906E-03    .56418E-04
   9  Prefactor     .10000E-03    14.150        .18142E-02** at limit **
  10  Prefactor     12.386        40.531        .11382E-03   -.56933E-05
  11  Prefactor     6.1821        246.01        .16151E-03   -.19710E-05
  12  norm          .10000E-03    23.592        .18142E-02** at limit **
  13  Prefactor     3.1880        13.218        .22706E-03   -.10414E-04
  14  Prefactor     87.074        57.554        .43050E-04   -.19331E-04
  15  norm          .10000E-03    11.661        .18142E-02** at limit **
  16  Prefactor     25.697        69.254        .79052E-04   -.21572E-05
  17  Prefactor     .10000E-03    22.621        .18142E-02** at limit **
  18  Prefactor     4.3745        14.282        .96298E-03    .10047E-04
  19  Normalizat    .72414E-01    .81863        .11852E-01    .37278E-03
  20  Prefactor     1.3870        .25902        .22313E-03   -.40251E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5736.456     FROM SIMPLEX   STATUS=UNCHANGED   1248 CALLS     3827 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.291        .69258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.806        .63011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9918        .44879        .47752E-06   -1.5218    
   4  Prefactor     36.325        49.007        .45509E-06   -1.4502    
   5  Prefactor     .10000E-03    9.4897        .20472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.962        .53809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.730        .42221E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7757        9.2308        .47574E-06   -1.5150    
   9  Prefactor     .10000E-03    14.150        .50944E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.386        40.531        .47122E-06   -1.5004    
  11  Prefactor     6.1821        246.01        .47903E-06   -1.5211    
  12  norm          .10000E-03    23.592        .70314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1880        13.218        .48186E-06   -1.5351    
  14  Prefactor     87.074        57.554        .43452E-06   -1.3839    
  15  norm          .10000E-03    11.661        .54372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.697        69.254        .46136E-06   -1.4694    
  17  Prefactor     .10000E-03    22.621        .45358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3745        14.282        .48012E-06   -1.5290    
  19  Normalizat    .72414E-01    .81863        .44390E-06   -1.4125    
  20  Prefactor     1.3870        .25902        .25359E-06   -.80756    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5736.456     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     4107 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.292        .36285E-03** at limit **
   2  Prefactor     .10000E-03    14.807        .36285E-03** at limit **
   3  Prefactor     5.9918        .44814        .52497E-06   -.75199E-05
   4  Prefactor     36.325        48.919        .26598E-05   -.17097E-06
   5  Prefactor     .10000E-03    9.4918        .36285E-03** at limit **
   6  Prefactor     .10000E-03    10.964        .36285E-03** at limit **
   7  Prefactor     .10000E-03    12.731        .36285E-03** at limit **
   8  Prefactor     7.7757        9.2253        .14381E-03   -.31621E-06
   9  Prefactor     .10000E-03    14.153        .36285E-03** at limit **
  10  Prefactor     12.386        40.219        .45528E-05   -.99883E-07
  11  Prefactor     6.1821        243.66        .64603E-05   -.70392E-07
  12  norm          .10000E-03    23.597        .36285E-03** at limit **
  13  Prefactor     3.1880        13.088        .90824E-05   -.25035E-06
  14  Prefactor     87.074        57.413        .86099E-05   -.26408E-06
  15  norm          .10000E-03    11.662        .36285E-03** at limit **
  16  Prefactor     25.697        68.560        .31621E-05   -.71907E-06
  17  Prefactor     .10000E-03    22.622        .36285E-03** at limit **
  18  Prefactor     4.3745        14.103        .38519E-04   -.29514E-06
  19  Normalizat    .72414E-01    .62242        .23703E-02    .76740E-06
  20  Prefactor     1.3870        .22955        .89252E-05   -.17833E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99176
  Prefactor  = 36.3247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.77571
  Prefactor  = 0.0001
  Prefactor  = 12.3861
  Prefactor  = 6.18211
  norm       = 0.0001
  Prefactor  = 3.18799
  Prefactor  = 87.0738
  norm       = 0.0001
  Prefactor  = 25.697
  Prefactor  = 0.0001
  Prefactor  = 4.3745
  Normalizat = 0.0724145
  Prefactor  = 1.387
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.456     FROM HESSE     STATUS=OK           273 CALLS     4380 TOTAL
                     EDM=   .52E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.807        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9918        .44798        .36283E-06   -1.5218    
   4  Prefactor     36.325        48.912        .26598E-05   -1.4502    
   5  Prefactor     .10000E-03    9.4919        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.964        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.731        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7757        9.2238        .57525E-05   -1.5150    
   9  Prefactor     .10000E-03    14.153        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.386        40.167        .45528E-05   -1.5004    
  11  Prefactor     6.1821        243.77        .64603E-05   -1.5211    
  12  norm          .10000E-03    23.597        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1880        13.032        .18165E-05   -1.5351    
  14  Prefactor     87.074        57.436        .17220E-05   -1.3839    
  15  norm          .10000E-03    11.662        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.697        69.158        .63241E-06   -1.4694    
  17  Prefactor     .10000E-03    22.622        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3745        14.050        .15408E-05   -1.5290    
  19  Normalizat    .72414E-01    .58778        .94814E-04   -1.4125    
  20  Prefactor     1.3870        .22410        .17850E-05   -.80756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18559e-14
Minuit parameter uncertainties:
  1  1.55602e-08
  2  1.41695e-08
  3  0.447979
  4  48.9657
  5  2.03987e-08
  6  3.27768e-08
  7  3.37784e-08
  8  9.22546
  9  1.78275e-07
  10  40.2547
  11  77.9837
  12  9.15902e-07
  13  12.8961
  14  57.4724
  15  5.19972e-09
  16  69.3748
  17  6.15663e-08
  18  14.0605
  19  0.388202
  20  0.224255
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.188e+00  1.290e+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:  1.387e+00  2.243e-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.241e-02  3.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 2.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76/likelihoodResults_499305601_499564801_4FGL_J2330.5+1102_daily_bin1003.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) = 5736.44859548
delta logL = 0.0070366805885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5736.44536232
delta logL = 0.0102698318469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4401       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5068       1.0000          .0000       10.000    
     3 'Normalizat'    .75064E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3847       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=   5736.445     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4345        16.576        .19110E-03    .13796E-03
   2  Index         2.5022        1.7899        .11667E-01    .70889E-04
   3  Normalizat    .75018E-01    .61363        .11742E-01   -.33273E-03
   4  Prefactor     1.3846        .25061        .22329E-03   -.24029E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43453
  Index      = 2.50219
  Normalizat = 0.0750183
  Prefactor  = 1.38459
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.445     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4345        16.131        .76442E-05   -1.5287    
   2  Index         2.5022        1.7443        .46667E-03   -.52309    
   3  Normalizat    .75018E-01    .48204        .46969E-03   -1.4093    
   4  Prefactor     1.3846        .22190        .44659E-04   -.80825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22203e-09
Minuit parameter uncertainties:
  1  16.1464
  2  1.79527
  3  0.358194
  4  0.222054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76': 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) = 5736.4453562
delta logL = 0.0102759610818

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  4.435e+00  1.615e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.502e+00  1.795e+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:  1.385e+00  2.221e-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.502e-02  3.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/76/cmap_HighResolution_499305601_499564801_4FGL_J2330.5+1102_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.37e-07', time_completed='2021-09-29 22:46:12.904129', job_id='76', GAL2='1.38', fit_tolerance='1e-08', EG2='0.08', EG='0.07', time_epoch_completed='1632980772.9', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='1.03e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1003' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 76: <4FGL_J2330.5+1102_daily_bin1003> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1003> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:30:44 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:30:46 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:30:46 2021
Terminated at Wed Sep 29 22:46:13 2021
Results reported at Wed Sep 29 22:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1003 352.629 11.0479 499305601 499564801 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 :                                   707.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

