/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 239 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin66
RA = 352.629, Dec = 11.0479
tmin = 256435201, tmax = 256694401
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='994505', job_status='RUN', time_executed='2021-09-29 22:14:44.340658', time_epoch_executed='1632978884.34' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994505

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994505/ft1_4FGL_J2330.5+1102_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994505/ft2_4FGL_J2330.5+1102_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994505/ft1_4FGL_J2330.5+1102_daily_bin66.fits outfile=/scratch/kocevski/994505/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin66.fits ra=352.629 dec=11.0479 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.43
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994505/ft1_filtered_4FGL_J2330.5+1102_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/994505/ft2_4FGL_J2330.5+1102_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/994505/ltcube_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.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/994505/ft2_4FGL_J2330.5+1102_daily_bin66.fits
.....................!
real 12.77
user 12.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994505/ft1_filtered_4FGL_J2330.5+1102_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/994505/ft2_4FGL_J2330.5+1102_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/994505/ltcube_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.fits outfile=/scratch/kocevski/994505/expmap_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.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/994505/ltcube_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.fits
.....................!
real 190.28
user 185.43
sys 4.54

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/994505/ft1_filtered_4FGL_J2330.5+1102_daily_bin66.fits scfile=/scratch/kocevski/994505/ft2_4FGL_J2330.5+1102_daily_bin66.fits outfile=/scratch/kocevski/994505/cmap_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994505/ft1_filtered_4FGL_J2330.5+1102_daily_bin66.fits scfile=/scratch/kocevski/994505/ft2_4FGL_J2330.5+1102_daily_bin66.fits outfile=/scratch/kocevski/994505/cmap_HighResolution_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72714       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72961E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    32.694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36290E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34623E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.500       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2308       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85203       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=   6182.122     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1832 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.824       -.15843E-05** at limit **
   2  Prefactor     .10000E-03    7.8480       -.40831E-05** at limit **
   3  Prefactor     .72690        .18968        .18904E-07    .27343E-02
   4  Prefactor     .10000E-03    150.37        .40890E-05** at limit **
   5  Prefactor     .17354        6.7353       -.17476E-05    .14403E-03
   6  Prefactor     .10000E-03    7.6974        .44652E-05** at limit **
   7  Prefactor     .10000E-03    8.2533        .18048E-05** at limit **
   8  Prefactor     .10000E-03    6.1607       -.14198E-05** at limit **
   9  Prefactor     .10000E-03    6.4609        .25612E-06** at limit **
  10  Prefactor     .10000E-03    6.9172       -.11821E-06** at limit **
  11  Prefactor     .10000E-03    163.12       -.20676E-04** at limit **
  12  norm          32.699        13.855       -.87061E-06   -.56707E-03
  13  Prefactor     .10000E-03    8.4180        .12408E-05** at limit **
  14  Prefactor     14.532        21.744       -.33377E-05   -.62081E-04
  15  norm          .10000E-03    4.0752        .14832E-06** at limit **
  16  Prefactor     .10000E-03    149.27        .36435E-05** at limit **
  17  Prefactor     11.497        21.020       -.63667E-05   -.29936E-04
  18  Prefactor     .10000E-03    3.3312       -.73034E-06** at limit **
  19  Normalizat    1.2303        .20549        .22290E-05   -.44880E-06
  20  Prefactor     .85190        .12399        .36776E-06    .14990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.7269
  Prefactor  = 0.000100001
  Prefactor  = 0.173536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.6987
  Prefactor  = 0.0001
  Prefactor  = 14.5321
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.497
  Prefactor  = 0.0001
  Normalizat = 1.23029
  Prefactor  = 0.851904
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72690        .18992        .16641E-04   -1.5537    
   4  Prefactor     .10000E-03    152.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .17354        88.493        .37940E-02   -1.5625    
   6  Prefactor     .10000E-03    7.6691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.529        .37578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    164.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          32.699        12.465        .70079E-04   -1.4564    
  13  Prefactor     .10000E-03    21.184        .38998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.532        21.714        .10507E-03   -1.4945    
  15  norm          .10000E-03    4.0763        .15501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    153.19        .42657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.497        21.054        .11813E-03   -1.5030    
  18  Prefactor     .10000E-03    3.3485        .14019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2303        .23432        .28359E-03   -.85672    
  20  Prefactor     .85190        .14293        .20756E-03   -.97843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41957e-09
Minuit parameter uncertainties:
  1  4.58321e-06
  2  3.05123e-06
  3  0.189916
  4  0.000706877
  5  7.84694
  6  1.1596e-05
  7  9.70125e-06
  8  1.63655e-05
  9  0.000766943
  10  6.68183e-06
  11  1.62674e-06
  12  12.4661
  13  0.00017418
  14  21.7254
  15  2.09031e-06
  16  0.000180867
  17  21.0674
  18  7.4722e-06
  19  0.234521
  20  0.142993
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  1.742e-04  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:  8.519e-01  1.430e-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:  1.230e+00  2.345e-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.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994505/likelihoodResults_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.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) = 6182.12200975
delta logL = -0.000224143293053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6182.12178648
delta logL = -8.760334822e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14633E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8281       1.0000          .0000       10.000    
     3 'Normalizat'    1.2304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85189       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=   6182.007     FROM MIGRAD    STATUS=FAILED       166 CALLS      330 TOTAL
                     EDM=   .40E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22058E-01    .36389E-03** at limit **
   2  Index         9.9676        6.7637        .50000       -.31574E-02
   3  Normalizat    1.1893        .10866        .28359E-03   -.18731E-03
   4  Prefactor     .86842        .63011E-01    .20756E-03   -.76792E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6182.007     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      493 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22058E-01    .68905E-05** at limit **
   2  Index         9.9676        6.7637        .20785E-02   -.31574E-02
   3  Normalizat    1.1893        .10866        .86308E-05   -.18731E-03
   4  Prefactor     .86842        .63011E-01    .35908E-05   -.76792E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6182.007     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      540 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14673E-02     .0000    ** at limit **
   2  Index         9.9676        7.7913         .0000       -.31499E-02
   3  Normalizat    1.1893        .23498         .0000       -.93124E-04
   4  Prefactor     .86842        .14486         .0000       -.24922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.96759
  Normalizat = 1.18935
  Prefactor  = 0.868418
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.007     FROM HESSE     STATUS=OK            27 CALLS      567 TOTAL
                     EDM=   .25E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .15028E-02    .69587E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9676        7.7814        .50000        1.4569    
   3  Normalizat    1.1893        .23477        .11344E-04   -.86933    
   4  Prefactor     .86842        .14477        .16605E-05   -.97254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46631e-05
Minuit parameter uncertainties:
  1  1.2007e-08
  2  0.895864
  3  0.234975
  4  0.144838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994505': 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) = 6182.00746583
delta logL = 0.114319776565

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  1.201e-08  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  9.968e+00  8.959e-01  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:  8.684e-01  1.448e-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:  1.189e+00  2.350e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/994505/cmap_HighResolution_256435201_256694401_4FGL_J2330.5+1102_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-29 22:24:22.987591', job_id='994505', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.23', time_epoch_completed='1632979462.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.14e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='66' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:24:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 994505: <4FGL_J2330.5+1102_daily_bin66> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin66> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:36 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:10:37 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:10:37 2021
Terminated at Wed Sep 29 22:24:23 2021
Results reported at Wed Sep 29 22:24:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin66 352.629 11.0479 256435201 256694401 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 :                                   578.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

