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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1569
RA = 352.629, Dec = 11.0479
tmin = 646012801, tmax = 646272001
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='2864', job_status='RUN', time_executed='2021-09-29 22:44:17.065189', time_epoch_executed='1632980657.07' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2864/ft1_4FGL_J2330.5+1102_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2864/ft2_4FGL_J2330.5+1102_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2864/ft1_4FGL_J2330.5+1102_daily_bin1569.fits outfile=/scratch/kocevski/2864/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1569.fits ra=352.629 dec=11.0479 rad=12.0 tmin=646012801.0 tmax=646272001.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.61
user 4.37
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2864/ft1_filtered_4FGL_J2330.5+1102_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/2864/ft2_4FGL_J2330.5+1102_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/2864/ltcube_646012801_646272001_4FGL_J2330.5+1102_daily_bin1569.fits outfile=/scratch/kocevski/2864/expmap_646012801_646272001_4FGL_J2330.5+1102_daily_bin1569.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/2864/ltcube_646012801_646272001_4FGL_J2330.5+1102_daily_bin1569.fits
.....................!
real 191.10
user 186.27
sys 4.47

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2864/ft1_filtered_4FGL_J2330.5+1102_daily_bin1569.fits scfile=/scratch/kocevski/2864/ft2_4FGL_J2330.5+1102_daily_bin1569.fits outfile=/scratch/kocevski/2864/cmap_HighResolution_646012801_646272001_4FGL_J2330.5+1102_daily_bin1569.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/2864/ft1_filtered_4FGL_J2330.5+1102_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/2864/ft2_4FGL_J2330.5+1102_daily_bin1569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2864/Model_4FGL_J2330.5+1102_daily_bin1569.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/2864/ft1_filtered_4FGL_J2330.5+1102_daily_bin1569.fits.....................!
real 76.42
user 75.09
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6423       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.296       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6225       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4367       1.0000         .10000E-03   10000.    
    11 'Prefactor '    390.81       1.0000         .10000E-03   10000.    
    12 'norm      '    24.743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66439E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61692       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0941       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=   7197.182     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2139 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.427        26.885       -.42667E-06   -.13186E-04
   2  Prefactor     3.6422        11.632       -.18925E-06   -.32580E-04
   3  Prefactor     .14290        .12245        .46831E-08   -.54605E-03
   4  Prefactor     39.287        35.909       -.72405E-06   -.22782E-04
   5  Prefactor     .10000E-03    2.2285        .22260E-08** at limit **
   6  Prefactor     7.6226        10.526       -.60533E-06   -.61607E-04
   7  Prefactor     2.2416        10.084        .39656E-05   -.64019E-03
   8  Prefactor     2.4152        7.8005       -.22821E-05   -.35464E-03
   9  Prefactor     .74389        9.5171        .26512E-06   -.12257E-03
  10  Prefactor     6.4362        23.989        .15559E-05    .34794E-04
  11  Prefactor     390.78        90.167       -.64640E-05   -.33414E-03
  12  norm          24.738        10.831       -.13935E-06   -.70273E-04
  13  Prefactor     .10000E-03    6.3808       -.16474E-07** at limit **
  14  Prefactor     .10000E-03    8.8932        .17004E-07** at limit **
  15  norm          .10000E-03    4.3836        .57085E-08** at limit **
  16  Prefactor     .10000E-03    31.209        .14331E-05** at limit **
  17  Prefactor     .10000E-03    10.613       -.68362E-08** at limit **
  18  Prefactor     .10000E-03    1.1968        .32708E-08** at limit **
  19  Normalizat    .61678        .19625        .11531E-05   -.48878E-04
  20  Prefactor     1.0941        .12065        .29440E-07   -.63192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4273
  Prefactor  = 3.64224
  Prefactor  = 0.142903
  Prefactor  = 39.2873
  Prefactor  = 0.0001
  Prefactor  = 7.62262
  Prefactor  = 2.24158
  Prefactor  = 2.41522
  Prefactor  = 0.743893
  Prefactor  = 6.43618
  Prefactor  = 390.782
  norm       = 24.738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.616782
  Prefactor  = 1.09414
 **********
 **   18 **HESSE 
 **********

 FCN=   7197.182     FROM HESSE     STATUS=OK           305 CALLS     2444 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.427        26.832        .76496E-04   -1.4660    
   2  Prefactor     3.6422        11.585        .21168E-03   -1.5326    
   3  Prefactor     .14290        .11739        .25445E-03   -1.5632    
   4  Prefactor     39.287        35.883        .63940E-04   -1.4454    
   5  Prefactor     .10000E-03    2.2401        .12365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6226        10.530        .14525E-03   -1.5156    
   7  Prefactor     2.2416        30.501        .13537E-02   -1.5409    
   8  Prefactor     2.4152        7.5405        .26358E-03   -1.5397    
   9  Prefactor     .74389        34.078        .44506E-02   -1.5535    
  10  Prefactor     6.4362        22.794        .15820E-03   -1.5201    
  11  Prefactor     390.78        90.677        .10321E-03   -1.1728    
  12  norm          24.738        10.538        .80530E-04   -1.4713    
  13  Prefactor     .10000E-03    6.4882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3909        .17347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.882        .13084       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1981        .90635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61678        .21791        .35964E-03   -1.0728    
  20  Prefactor     1.0941        .13595        .17899E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22839e-08
Minuit parameter uncertainties:
  1  26.8437
  2  11.5926
  3  0.117387
  4  35.9023
  5  2.62277e-08
  6  10.5324
  7  16.5473
  8  7.54348
  9  10.0752
  10  22.8244
  11  90.7103
  12  10.539
  13  5.10606e-06
  14  2.14471e-07
  15  1.85924e-06
  16  0.000617632
  17  8.65263e-06
  18  6.45093e-07
  19  0.218213
  20  0.135996
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  5.106e-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:  1.094e+00  1.360e-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.168e-01  2.182e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2864/likelihoodResults_646012801_646272001_4FGL_J2330.5+1102_daily_bin1569.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) = 7197.18257868
delta logL = -0.000734890717467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7197.18184389
delta logL = -9.91376509774e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7926       1.0000          .0000       10.000    
     3 'Normalizat'    .61672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0942       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=   7197.182     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    8.9027        .36285E-03** at limit **
   2  Index         2.8906        6.8689        .50000       -.76579E-05
   3  Normalizat    .61678        .20585        .35964E-03    .20042E-03
   4  Prefactor     1.0941        .13448        .17899E-03    .34497E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7197.182     FROM SIMPLEX   STATUS=UNCHANGED    116 CALLS      360 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10111E-03    8.9027        .35175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8906        6.8689        .16032E-02   -.43552    
   3  Normalizat    .61678        .20585        .12660E-03   -1.0728    
   4  Prefactor     1.0941        .13448        .33600E-04   -.89654    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7197.182     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      417 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    113.28        .72569E-03** at limit **
   2  Index         4.5840        6.1319        .50000        .74490E-06
   3  Normalizat    .61677        .12467E-01    .14385E-04   -.47417E-05
   4  Prefactor     1.0941        .81372E-02    .35797E-04   -.10036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 4.58401
  Normalizat = 0.616774
  Prefactor  = 1.09415
 **********
 **   18 **HESSE 
 **********

 FCN=   7197.182     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2182.9        .29028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.5840        7.2163        .50000       -.83294E-01
   3  Normalizat    .61677        .71356E-01    .28771E-05   -1.0728    
   4  Prefactor     1.0941        .45459E-01    .71595E-05   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03937e-08
Minuit parameter uncertainties:
  1  0.000134197
  2  708.641
  3  0.0713669
  4  0.0454602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2864': 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) = 7197.1818391
delta logL = 4.68605776405e-06

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  1.342e-04  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  4.584e+00  7.086e+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.094e+00  4.546e-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.168e-01  7.137e-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/2864/cmap_HighResolution_646012801_646272001_4FGL_J2330.5+1102_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', job_status='DONE', photon_flux_upper_limit='9.34e-08', time_completed='2021-09-29 22:55:08.599656', job_id='2864', GAL2='1.09', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632981308.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='4.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1569' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 2864: <4FGL_J2330.5+1102_daily_bin1569> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1569> 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) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:40:23 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:23 2021
Terminated at Wed Sep 29 22:55:09 2021
Results reported at Wed Sep 29 22:55:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1569 352.629 11.0479 646012801 646272001 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 :                                   647.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

