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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1570
RA = 352.629, Dec = 11.0479
tmin = 646272001, tmax = 646531201
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='2865', job_status='RUN', time_executed='2021-09-29 22:43:17.852921', time_epoch_executed='1632980597.85' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2865/ft1_4FGL_J2330.5+1102_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2865/ft2_4FGL_J2330.5+1102_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2865/ft1_4FGL_J2330.5+1102_daily_bin1570.fits outfile=/scratch/kocevski/2865/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1570.fits ra=352.629 dec=11.0479 rad=12.0 tmin=646272001.0 tmax=646531201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.08
user 3.86
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2865/ft1_filtered_4FGL_J2330.5+1102_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/2865/ft2_4FGL_J2330.5+1102_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/2865/ltcube_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.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/2865/ft2_4FGL_J2330.5+1102_daily_bin1570.fits
.....................!
real 11.92
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2865/ft1_filtered_4FGL_J2330.5+1102_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/2865/ft2_4FGL_J2330.5+1102_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/2865/ltcube_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.fits outfile=/scratch/kocevski/2865/expmap_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.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/2865/ltcube_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.fits
.....................!
real 193.06
user 187.28
sys 5.46

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/2865/ft1_filtered_4FGL_J2330.5+1102_daily_bin1570.fits scfile=/scratch/kocevski/2865/ft2_4FGL_J2330.5+1102_daily_bin1570.fits outfile=/scratch/kocevski/2865/cmap_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2865/ft1_filtered_4FGL_J2330.5+1102_daily_bin1570.fits scfile=/scratch/kocevski/2865/ft2_4FGL_J2330.5+1102_daily_bin1570.fits outfile=/scratch/kocevski/2865/cmap_HighResolution_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.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/2865/ft1_filtered_4FGL_J2330.5+1102_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/2865/ft2_4FGL_J2330.5+1102_daily_bin1570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2865/Model_4FGL_J2330.5+1102_daily_bin1570.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/2865/ft1_filtered_4FGL_J2330.5+1102_daily_bin1570.fits....................!
real 74.51
user 73.21
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2131       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18617       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13384E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    125.23       1.0000         .10000E-03   10000.    
    12 'norm      '    .28867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.542       1.0000         .10000E-03   10000.    
    15 'norm      '    13.094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.662       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6649       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65039       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1998       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=   6687.653     FROM MIGRAD    STATUS=FAILED       779 CALLS     2738 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2199        112.50        .22601E-03   -.77967E-05
   2  Prefactor     .10000E-03    22.291        .18142E-02** at limit **
   3  Prefactor     .27686        .15059        .21542E-04    .93360E-03
   4  Prefactor     2.7665        75.810        .24342E-03   -.22418E-05
   5  Prefactor     .18178        38.317        .34744E-02    .18144E-02
   6  Prefactor     .10000E-03    28.021        .39298E-02** at limit **
   7  Prefactor     .10000E-03    5.0066        .17863E-02** at limit **
   8  Prefactor     6.2199        8.5691        .16113E-03   -.49178E-04
   9  Prefactor     9.2575        16.119        .13188E-03    .77586E-06
  10  Prefactor     .16386        27.489        .87390E-01    .15678E-03
  11  Prefactor     125.20        63.374        .17985E-03    .71428E-05
  12  norm          .24609        175.49        .41510E-02    .54861E-04
  13  Prefactor     .10000E-03    5.3183        .18142E-02** at limit **
  14  Prefactor     11.548        31.533        .11792E-03    .15137E-04
  15  norm          13.097        14.754        .11069E-03   -.50325E-05
  16  Prefactor     18.657        28.203        .92713E-04   -.17167E-05
  17  Prefactor     .10000E-03    9.2461        .18142E-02** at limit **
  18  Prefactor     7.6636        5.6004        .14485E-03   -.55727E-05
  19  Normalizat    .65066        .24015        .36185E-03    .47128E-06
  20  Prefactor     1.1998        .14672        .17924E-03   -.61778E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6687.653     FROM SIMPLEX   STATUS=PROGRESS     853 CALLS     3591 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2199        112.50        .38643E-06   -1.5349    
   2  Prefactor     .10000E-03    22.291        .83279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27686        .15059        .35967E-06   -1.5603    
   4  Prefactor     2.7665        75.810        .36820E-06   -1.5375    
   5  Prefactor     .18178        38.317        .37768E-06   -1.5623    
   6  Prefactor     .10000E-03    28.021        .81358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0066        .38477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2199        8.5691        .35011E-06   -1.5209    
   9  Prefactor     9.2575        16.119        .34843E-06   -1.5099    
  10  Prefactor     .16386        27.489        .40388E-06   -1.5627    
  11  Prefactor     125.20        63.374        .31393E-06   -1.3465    
  12  norm          .24609        175.49        .29690E-05   -1.5609    
  13  Prefactor     .10000E-03    5.3183        .42850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.548        31.533        .34615E-06   -1.5028    
  15  norm          13.097        14.754        .34488E-06   -1.4984    
  16  Prefactor     18.657        28.203        .34163E-06   -1.4844    
  17  Prefactor     .10000E-03    9.2461        .44205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6636        5.6004        .34868E-06   -1.5154    
  19  Normalizat    .65066        .24015        .24362E-06   -1.0587    
  20  Prefactor     1.1998        .14672        .19865E-06   -.86336    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6687.653     FROM MIGRAD    STATUS=CONVERGED    288 CALLS     3879 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2200        112.36        .90405E-05   -.25151E-06
   2  Prefactor     .10000E-03    22.297        .36285E-03** at limit **
   3  Prefactor     .27686        .15031        .86167E-06   -.47675E-04
   4  Prefactor     2.7665        75.692        .97369E-05    .93407E-07
   5  Prefactor     .18181        39.052        .69489E-03    .73252E-04
   6  Prefactor     .10000E-03    28.293        .78596E-03** at limit **
   7  Prefactor     .10000E-03    5.0068        .35726E-03** at limit **
   8  Prefactor     6.2199        8.5282        .64452E-05    .35278E-05
   9  Prefactor     9.2575        14.453        .52751E-05    .90517E-05
  10  Prefactor     .16386        23.667        .95398E-01    .13742E-03
  11  Prefactor     125.20        63.352        .71942E-05    .31605E-06
  12  norm          .24606        131.98        .16604E-03   -.68470E-06
  13  Prefactor     .10000E-03    5.3189        .36285E-03** at limit **
  14  Prefactor     11.548        30.953        .47167E-05    .28924E-05
  15  norm          13.097        14.752        .44278E-05    .10270E-05
  16  Prefactor     18.657        28.192        .37085E-05    .24525E-06
  17  Prefactor     .10000E-03    9.2470        .36285E-03** at limit **
  18  Prefactor     7.6636        5.5990        .57938E-05    .39244E-06
  19  Normalizat    .65066        .23825        .14474E-04    .20422E-05
  20  Prefactor     1.1998        .14645        .71697E-05    .63427E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21996
  Prefactor  = 0.0001
  Prefactor  = 0.276858
  Prefactor  = 2.76652
  Prefactor  = 0.181808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.21988
  Prefactor  = 9.25753
  Prefactor  = 0.163856
  Prefactor  = 125.205
  norm       = 0.246063
  Prefactor  = 0.0001
  Prefactor  = 11.5478
  norm       = 13.0971
  Prefactor  = 18.6573
  Prefactor  = 0.0001
  Prefactor  = 7.66361
  Normalizat = 0.650662
  Prefactor  = 1.19984
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.653     FROM HESSE     STATUS=OK           283 CALLS     4162 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2200        112.48        .18081E-05   -1.5349    
   2  Prefactor     .10000E-03    22.297        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27686        .15023        .37200E-06   -1.5603    
   4  Prefactor     2.7665        75.695        .97369E-05   -1.5375    
   5  Prefactor     .18181        38.990        .13898E-03   -1.5623    
   6  Prefactor     .10000E-03    28.304        .15719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0068        .71452E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2199        8.5391        .12890E-05   -1.5209    
   9  Prefactor     9.2575        14.377        .10550E-05   -1.5099    
  10  Prefactor     .16386        25.002        .92348E-01   -1.5627    
  11  Prefactor     125.20        63.384        .14388E-05   -1.3465    
  12  norm          .24606        129.83        .66415E-05   -1.5609    
  13  Prefactor     .10000E-03    5.3190        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.548        30.916        .94334E-06   -1.5028    
  15  norm          13.097        14.744        .88555E-06   -1.4984    
  16  Prefactor     18.657        28.193        .37085E-05   -1.4844    
  17  Prefactor     .10000E-03    9.2470        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6636        5.5991        .11588E-05   -1.5154    
  19  Normalizat    .65066        .23845        .28948E-05   -1.0587    
  20  Prefactor     1.1998        .14658        .14339E-05   -.86336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08582e-10
Minuit parameter uncertainties:
  1  38.1389
  2  3.67458e-07
  3  0.150229
  4  28.9824
  5  5.32698
  6  1.2543e-06
  7  5.39675e-09
  8  8.54076
  9  14.3826
  10  4.04852
  11  63.4181
  12  11.3266
  13  5.78855e-07
  14  30.9585
  15  14.7485
  16  28.2128
  17  3.68814e-08
  18  5.59945
  19  0.238831
  20  0.146628
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  5.789e-07  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.200e+00  1.466e-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:  6.507e-01  2.388e-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: 9.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2865/likelihoodResults_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.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) = 6687.65347977
delta logL = -0.000896650147297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6687.65258322
delta logL = -1.06018887891e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7828       1.0000          .0000       10.000    
     3 'Normalizat'    .65061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1999       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=   6687.653     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      240 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    289.05        .18142E-02** at limit **
   2  Index         2.7431        5.8373        .50000        .45077E-05
   3  Normalizat    .65066        .38893E-01    .36184E-03    .80464E-04
   4  Prefactor     1.1998        .25646E-01    .17924E-03    .14830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100197
  Index      = 2.74306
  Normalizat = 0.650663
  Prefactor  = 1.19984
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.653     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    1018.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7431        8.0959        .50000       -.46832    
   3  Normalizat    .65066        .10792        .14474E-04   -1.0587    
   4  Prefactor     1.1998        .71001E-01    .35848E-04   -.86336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21797e-08
Minuit parameter uncertainties:
  1  0.0288398
  2  2572.93
  3  0.107954
  4  0.0710071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2865': 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) = 6687.65258308
delta logL = 3.69354893337e-08

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.002e-04  2.884e-02  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.743e+00  2.573e+03  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.200e+00  7.101e-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:  6.507e-01  1.080e-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/2865/cmap_HighResolution_646272001_646531201_4FGL_J2330.5+1102_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.29e-08', time_completed='2021-09-29 22:55:40.551602', job_id='2865', GAL2='1.20', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632981340.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='3.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1570' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:55:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 2865: <4FGL_J2330.5+1102_daily_bin1570> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1570 352.629 11.0479 646272001 646531201 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 :                                   737.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

