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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1222
RA = 352.629, Dec = 11.0479
tmin = 556070401, tmax = 556329601
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='1403', job_status='RUN', time_executed='2021-09-29 22:38:45.633445', time_epoch_executed='1632980325.63' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1403/ft1_4FGL_J2330.5+1102_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1403/ft2_4FGL_J2330.5+1102_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1403/ft1_4FGL_J2330.5+1102_daily_bin1222.fits outfile=/scratch/kocevski/1403/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1222.fits ra=352.629 dec=11.0479 rad=12.0 tmin=556070401.0 tmax=556329601.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 3.75
user 3.51
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1403/ft1_filtered_4FGL_J2330.5+1102_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/1403/ft2_4FGL_J2330.5+1102_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/1403/ltcube_556070401_556329601_4FGL_J2330.5+1102_daily_bin1222.fits outfile=/scratch/kocevski/1403/expmap_556070401_556329601_4FGL_J2330.5+1102_daily_bin1222.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/1403/ltcube_556070401_556329601_4FGL_J2330.5+1102_daily_bin1222.fits
.....................!
real 190.40
user 185.31
sys 4.72

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/1403/ft1_filtered_4FGL_J2330.5+1102_daily_bin1222.fits scfile=/scratch/kocevski/1403/ft2_4FGL_J2330.5+1102_daily_bin1222.fits outfile=/scratch/kocevski/1403/cmap_556070401_556329601_4FGL_J2330.5+1102_daily_bin1222.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.52
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.110       1.0000         .10000E-03   10000.    
    12 'norm      '    7.9496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.914       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8696       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71512       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1034       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=   5019.805     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2056 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.588       -.14261E-04** at limit **
   2  Prefactor     .10000E-03    24.538        .58643E-05** at limit **
   3  Prefactor     1.1692        .41574       -.29746E-07   -.50476E-04
   4  Prefactor     .10000E-03    46.178        .22243E-04** at limit **
   5  Prefactor     .10000E-03    9.4007       -.22534E-06** at limit **
   6  Prefactor     .10000E-03    10.157        .19936E-06** at limit **
   7  Prefactor     .10000E-03    13.425       -.37827E-06** at limit **
   8  Prefactor     25.509        22.291        .27199E-06    .80593E-04
   9  Prefactor     4.0913        9.3230       -.62430E-06   -.17809E-03
  10  Prefactor     .10000E-03    31.987       -.16962E-04** at limit **
  11  Prefactor     75.109        47.299       -.21942E-06    .13982E-05
  12  norm          7.9655        14.120        .24325E-06   -.74740E-04
  13  Prefactor     4.0729        13.774       -.12202E-05   -.18211E-03
  14  Prefactor     .10000E-03    6.0524        .35517E-08** at limit **
  15  norm          22.920        25.771        .38236E-05    .12678E-04
  16  Prefactor     7.0495        27.870       -.10963E-04   -.17961E-04
  17  Prefactor     8.1594        24.054        .20818E-06   -.11321E-04
  18  Prefactor     4.8705        10.828       -.60919E-06   -.88653E-04
  19  Normalizat    .71506        .25638        .10395E-05   -.38993E-04
  20  Prefactor     1.1035        .15490       -.57823E-07   -.11657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.16921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5095
  Prefactor  = 4.09131
  Prefactor  = 0.0001
  Prefactor  = 75.1092
  norm       = 7.96554
  Prefactor  = 4.07287
  Prefactor  = 0.0001
  norm       = 22.92
  Prefactor  = 7.04953
  Prefactor  = 8.15937
  Prefactor  = 4.87048
  Normalizat = 0.715062
  Prefactor  = 1.10347
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.805     FROM HESSE     STATUS=OK           293 CALLS     2349 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1692        .41410        .26235E-04   -1.5492    
   4  Prefactor     .10000E-03    46.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.509        22.281        .79316E-04   -1.4697    
   9  Prefactor     4.0913        9.3059        .19927E-03   -1.5303    
  10  Prefactor     .10000E-03    31.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     75.109        47.307        .46330E-04   -1.3972    
  12  norm          7.9655        13.628        .14221E-03   -1.5143    
  13  Prefactor     4.0729        13.320        .19931E-03   -1.5304    
  14  Prefactor     .10000E-03    6.0541        .17023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.920        25.787        .83678E-04   -1.4750    
  16  Prefactor     7.0495        27.909        .15099E-03   -1.5177    
  17  Prefactor     8.1594        24.050        .14035E-03   -1.5137    
  18  Prefactor     4.8705        10.825        .18228E-03   -1.5267    
  19  Normalizat    .71506        .29044        .36388E-03   -1.0330    
  20  Prefactor     1.1035        .17746        .18931E-03   -.89356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06805e-10
Minuit parameter uncertainties:
  1  8.16626e-06
  2  6.87752e-06
  3  0.4141
  4  4.82064e-05
  5  4.24772e-06
  6  3.48339e-06
  7  1.76668e-06
  8  22.2882
  9  9.30917
  10  2.39593e-05
  11  47.3311
  12  13.6328
  13  13.3301
  14  3.12091e-06
  15  25.7991
  16  27.9607
  17  24.0785
  18  10.8295
  19  0.291067
  20  0.177558
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.103e+00  1.776e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.151e-01  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/1403/likelihoodResults_556070401_556329601_4FGL_J2330.5+1102_daily_bin1222.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.80480407
delta logL = 4.41653955932e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.80479672
delta logL = 5.15125830134e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1114       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7728       1.0000          .0000       10.000    
     3 'Normalizat'    .71513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1035       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5019.805     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      273 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1157        11.650        .99406E-03    .16111E-03
   2  Index         2.7736        1.3270        .11648E-01    .91562E-04
   3  Normalizat    .71524        .27865        .36383E-03   -.45621E-05
   4  Prefactor     1.1034        .17619        .18932E-03    .46239E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11575
  Index      = 2.77361
  Normalizat = 0.715244
  Prefactor  = 1.10337
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.805     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1157        11.151        .19881E-03   -1.5302    
   2  Index         2.7736        1.2724        .23297E-02   -.46148    
   3  Normalizat    .71524        .27897        .14553E-04   -1.0329    
   4  Prefactor     1.1034        .17631        .75728E-05   -.89359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05094e-12
Minuit parameter uncertainties:
  1  11.1569
  2  1.29015
  3  0.279523
  4  0.176407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1403': 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) = 5019.80479579
delta logL = 5.24402375959e-05

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.103e+00  1.764e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.152e-01  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/1403/cmap_HighResolution_556070401_556329601_4FGL_J2330.5+1102_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-09-29 22:49:24.162829', job_id='1403', GAL2='1.10', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632980964.16', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='5.24e-05', ts2='0.18', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1222' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:49:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 1403: <4FGL_J2330.5+1102_daily_bin1222> in cluster <slac> Done

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

Your job looked like:

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

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

