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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1548
RA = 352.629, Dec = 11.0479
tmin = 640569601, tmax = 640828801
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='2834', job_status='RUN', time_executed='2021-09-29 22:40:47.214887', time_epoch_executed='1632980447.21' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2834

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2834/ft1_4FGL_J2330.5+1102_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2834/ft2_4FGL_J2330.5+1102_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2834/ft1_4FGL_J2330.5+1102_daily_bin1548.fits outfile=/scratch/kocevski/2834/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1548.fits ra=352.629 dec=11.0479 rad=12.0 tmin=640569601.0 tmax=640828801.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 2.98
user 2.78
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2834/ft2_4FGL_J2330.5+1102_daily_bin1548.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/2834/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1548.fits evtable="EVENTS" outfile="/scratch/kocevski/2834/ft1_filtered_4FGL_J2330.5+1102_daily_bin1548.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/2834/ft1_filtered_4FGL_J2330.5+1102_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/2834/ft2_4FGL_J2330.5+1102_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/2834/ltcube_640569601_640828801_4FGL_J2330.5+1102_daily_bin1548.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/2834/ft2_4FGL_J2330.5+1102_daily_bin1548.fits
.....................!
real 15.67
user 15.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2834/ft1_filtered_4FGL_J2330.5+1102_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/2834/ft2_4FGL_J2330.5+1102_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/2834/ltcube_640569601_640828801_4FGL_J2330.5+1102_daily_bin1548.fits outfile=/scratch/kocevski/2834/expmap_640569601_640828801_4FGL_J2330.5+1102_daily_bin1548.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/2834/ltcube_640569601_640828801_4FGL_J2330.5+1102_daily_bin1548.fits
.....................!
real 189.96
user 185.05
sys 4.56

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/2834/ft1_filtered_4FGL_J2330.5+1102_daily_bin1548.fits scfile=/scratch/kocevski/2834/ft2_4FGL_J2330.5+1102_daily_bin1548.fits outfile=/scratch/kocevski/2834/cmap_640569601_640828801_4FGL_J2330.5+1102_daily_bin1548.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.104       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.612       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8677       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88750       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97359       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.

 FCN=   7740.966     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2035 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.104        17.505        .26663E-02    .14949E-04
   2  Prefactor     .10000E-03    12.622        .90712E-02** at limit **
   3  Prefactor     .41528        .13190        .38626E-02    .10379E-02
   4  Prefactor     49.181        34.290        .14296E-02   -.28440E-03
   5  Prefactor     9.7946        6.3203        .32011E-02   -.48937E-03
   6  Prefactor     .10000E-03    2.7023        .90712E-02** at limit **
   7  Prefactor     12.866        12.107        .27916E-02   -.43304E-03
   8  Prefactor     13.612        8.1212        .27141E-02    .20431E-02
   9  Prefactor     7.4542        8.7612        .36725E-02   -.17548E-03
  10  Prefactor     17.148        23.283        .24181E-02   -.23226E-03
  11  Prefactor     .10000E-03    67.113        .90712E-02** at limit **
  12  norm          .10000E-03    5.0333        .90712E-02** at limit **
  13  Prefactor     .10000E-03    9.4898        .90712E-02** at limit **
  14  Prefactor     7.8702        20.759        .35738E-02   -.25069E-03
  15  norm          .10000E-03    21.576        .90712E-02** at limit **
  16  Prefactor     3.5576        26.866        .53538E-02    .16401E-03
  17  Prefactor     .10000E-03    3.5370        .90712E-02** at limit **
  18  Prefactor     .10000E-03    2.2487        .90712E-02** at limit **
  19  Normalizat    .88743        .18801        .73031E-01    .49206E-04
  20  Prefactor     .97362        .11374        .45936E-01    .38558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1044
  Prefactor  = 0.0001
  Prefactor  = 0.41528
  Prefactor  = 49.1805
  Prefactor  = 9.7946
  Prefactor  = 0.0001
  Prefactor  = 12.8658
  Prefactor  = 13.6122
  Prefactor  = 7.45418
  Prefactor  = 17.1481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87017
  norm       = 0.0001
  Prefactor  = 3.5576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.887429
  Prefactor  = 0.973619
 **********
 **   18 **HESSE 
 **********

 FCN=   7740.966     FROM HESSE     STATUS=OK           289 CALLS     2324 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.104        17.519        .10665E-03   -1.4957    
   2  Prefactor     .10000E-03    12.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41528        .13137        .17151E-04   -1.5579    
   4  Prefactor     49.181        34.342        .57182E-04   -1.4304    
   5  Prefactor     9.7946        6.3222        .12804E-03   -1.5082    
   6  Prefactor     .10000E-03    2.7063        .14124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.866        12.116        .11166E-03   -1.4990    
   8  Prefactor     13.612        8.1080        .54283E-03   -1.4970    
   9  Prefactor     7.4542        8.7405        .14690E-03   -1.5162    
  10  Prefactor     17.148        23.272        .96722E-04   -1.4880    
  11  Prefactor     .10000E-03    67.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.0820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8702        20.720        .14295E-03   -1.5147    
  15  norm          .10000E-03    22.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5576        26.867        .21415E-03   -1.5331    
  17  Prefactor     .10000E-03    3.5376        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2526        .12884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88743        .21785        .32317E-03   -.96903    
  20  Prefactor     .97362        .13248        .19310E-03   -.93614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42435e-09
Minuit parameter uncertainties:
  1  17.5257
  2  1.27049e-06
  3  0.131372
  4  34.3558
  5  6.32267
  6  1.54355e-06
  7  12.1187
  8  8.10861
  9  8.74199
  10  23.2845
  11  0.000116382
  12  6.73123e-06
  13  5.5567e-06
  14  20.7385
  15  4.3787e-05
  16  19.565
  17  4.44675e-06
  18  2.08628e-07
  19  0.218067
  20  0.132525
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.736e-01  1.325e-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:  8.874e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2834/likelihoodResults_640569601_640828801_4FGL_J2330.5+1102_daily_bin1548.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) = 7740.96611731
delta logL = -0.000486551466565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7740.96563134
delta logL = -5.7324723457e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11783E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7361       1.0000          .0000       10.000    
     3 'Normalizat'    .88758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97355       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=   7740.966     FROM MIGRAD    STATUS=FAILED       111 CALLS      269 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    349.81        .36285E-02** at limit **
   2  Index         2.1750        6.6448        .50000       -.30383E-05
   3  Normalizat    .88743        .16125E-01    .32317E-03   -.34049E-03
   4  Prefactor     .97362        .10116E-01    .19310E-03   -.54279E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7740.966     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      418 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    349.81        .98886E-03** at limit **
   2  Index         2.1750        6.6448        .17803E-04   -.30383E-05
   3  Normalizat    .88743        .16125E-01    .13585E-06   -.34049E-03
   4  Prefactor     .97362        .10116E-01    .58622E-07   -.54279E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7740.966     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      449 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1558.6        .72569E-03** at limit **
   2  Index         2.1774        8.9062        .50000        .23156E-06
   3  Normalizat    .88743        .36224E-01    .12927E-04   -.33877E-03
   4  Prefactor     .97362        .22726E-01    .38620E-04   -.53994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.17744
  Normalizat = 0.887428
  Prefactor  = 0.973619
 **********
 **   18 **HESSE 
 **********

 FCN=   7740.966     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      478 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7378.4        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1774        5.6853        .50000       -.59984    
   3  Normalizat    .88743        .92108E-01    .25854E-05   -.96903    
   4  Prefactor     .97362        .57786E-01    .77240E-05   -.93614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59031e-09
Minuit parameter uncertainties:
  1  0.00704982
  2  1295.31
  3  0.0921239
  4  0.0577901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2834': 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) = 7740.96562724
delta logL = 3.52257120539e-06

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  7.050e-03  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.177e+00  1.295e+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:  9.736e-01  5.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:  8.874e-01  9.212e-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/2834/cmap_HighResolution_640569601_640828801_4FGL_J2330.5+1102_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-29 22:51:51.162942', job_id='2834', GAL2='0.97', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632981111.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1548' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 2834: <4FGL_J2330.5+1102_daily_bin1548> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1548> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:40:20 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:40:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:40:21 2021
Terminated at Wed Sep 29 22:51:51 2021
Results reported at Wed Sep 29 22:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1548 352.629 11.0479 640569601 640828801 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 :                                   653.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

