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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1657
RA = 352.629, Dec = 11.0479
tmin = 668822401, tmax = 669081601
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='531979', job_status='RUN', time_executed='2022-03-16 01:26:03.206296', time_epoch_executed='1647419163.21' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531979/ft1_4FGL_J2330.5+1102_daily_bin1657.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531979/ft2_4FGL_J2330.5+1102_daily_bin1657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531979/ft1_4FGL_J2330.5+1102_daily_bin1657.fits outfile=/scratch/kocevski/531979/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1657.fits ra=352.629 dec=11.0479 rad=12.0 tmin=668822401.0 tmax=669081601.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 5.54
user 5.27
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531979/ft2_4FGL_J2330.5+1102_daily_bin1657.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/531979/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1657.fits evtable="EVENTS" outfile="/scratch/kocevski/531979/ft1_filtered_4FGL_J2330.5+1102_daily_bin1657.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.50
user 0.34
sys 0.15
Number of photons that survived the gtmktime cut: 625

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531979/ft1_filtered_4FGL_J2330.5+1102_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/531979/ft2_4FGL_J2330.5+1102_daily_bin1657.fits sctable="SC_DATA" expcube=/scratch/kocevski/531979/ltcube_668822401_669081601_4FGL_J2330.5+1102_daily_bin1657.fits outfile=/scratch/kocevski/531979/expmap_668822401_669081601_4FGL_J2330.5+1102_daily_bin1657.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/531979/ltcube_668822401_669081601_4FGL_J2330.5+1102_daily_bin1657.fits
.....................!
real 191.41
user 185.63
sys 5.22

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/531979/ft1_filtered_4FGL_J2330.5+1102_daily_bin1657.fits scfile=/scratch/kocevski/531979/ft2_4FGL_J2330.5+1102_daily_bin1657.fits outfile=/scratch/kocevski/531979/cmap_668822401_669081601_4FGL_J2330.5+1102_daily_bin1657.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531979/ft1_filtered_4FGL_J2330.5+1102_daily_bin1657.fits scfile=/scratch/kocevski/531979/ft2_4FGL_J2330.5+1102_daily_bin1657.fits outfile=/scratch/kocevski/531979/cmap_HighResolution_668822401_669081601_4FGL_J2330.5+1102_daily_bin1657.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.398       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12729E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.416       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9559       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    95.435       1.0000         .10000E-03   10000.    
    12 'norm      '    5.3295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    23.194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8382       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1859       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0097       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=   6753.716     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2018 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.397        39.949        .62957E-07   -.23430E-05
   2  Prefactor     .10000E-03    4.8479       -.64120E-08** at limit **
   3  Prefactor     .27693        .13000        .43570E-08    .21846E-03
   4  Prefactor     .10001E-03    30.587       -.18703E-05** at limit **
   5  Prefactor     .10001E-03    4.0894       -.70278E-06** at limit **
   6  Prefactor     12.412        16.244        .17948E-06   -.30802E-05
   7  Prefactor     7.9562        17.538        .28000E-05   -.24134E-04
   8  Prefactor     8.3539        7.0384        .25100E-05   -.10774E-03
   9  Prefactor     15.903        11.909        .31322E-06   -.19971E-05
  10  Prefactor     3.2590        11.122       -.60763E-06   -.21906E-04
  11  Prefactor     95.439        73.952        .28663E-06    .30635E-04
  12  norm          5.3295        5.9154        .22496E-06    .74093E-05
  13  Prefactor     .10000E-03    1.8794        .79184E-08** at limit **
  14  Prefactor     .10001E-03    26.442        .20377E-05** at limit **
  15  norm          23.195        15.894        .69989E-07    .48973E-06
  16  Prefactor     55.343        42.240        .55172E-06    .59782E-04
  17  Prefactor     .10000E-03    7.5503        .63038E-07** at limit **
  18  Prefactor     2.8387        5.8200        .68194E-06   -.43708E-04
  19  Normalizat    1.1857        .21879       -.93481E-06    .36976E-04
  20  Prefactor     1.0098        .13388       -.36503E-06    .38049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.3974
  Prefactor  = 0.0001
  Prefactor  = 0.276929
  Prefactor  = 0.000100007
  Prefactor  = 0.000100006
  Prefactor  = 12.4124
  Prefactor  = 7.95622
  Prefactor  = 8.35391
  Prefactor  = 15.9031
  Prefactor  = 3.25901
  Prefactor  = 95.4393
  norm       = 5.3295
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 23.1945
  Prefactor  = 55.3427
  Prefactor  = 0.0001
  Prefactor  = 2.83874
  Normalizat = 1.18574
  Prefactor  = 1.00979
 **********
 **   18 **HESSE 
 **********

 FCN=   6753.716     FROM HESSE     STATUS=OK           295 CALLS     2313 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.397        39.970        .56490E-04   -1.4287    
   2  Prefactor     .10000E-03    4.8493        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27693        .12844        .19250E-04   -1.5603    
   4  Prefactor     .10001E-03    30.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    13.111        .31491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.412        16.207        .11368E-03   -1.5003    
   7  Prefactor     7.9562        17.536        .71076E-03   -1.5144    
   8  Prefactor     8.3539        7.0572        .69353E-03   -1.5130    
   9  Prefactor     15.903        11.893        .10043E-03   -1.4910    
  10  Prefactor     3.2590        11.093        .22433E-03   -1.5347    
  11  Prefactor     95.439        73.962        .41143E-04   -1.3751    
  12  norm          5.3295        5.9053        .17409E-03   -1.5246    
  13  Prefactor     .10000E-03    1.8840        .11000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    26.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.195        15.896        .83172E-04   -1.4744    
  16  Prefactor     55.343        42.342        .53923E-04   -1.4219    
  17  Prefactor     .10000E-03    7.5566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8387        5.8060        .24137E-03   -1.5371    
  19  Normalizat    1.1857        .25314        .31162E-03   -.87045    
  20  Prefactor     1.0098        .15503        .21011E-03   -.92404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47037e-10
Minuit parameter uncertainties:
  1  39.9916
  2  3.53576e-07
  3  0.128438
  4  0.000944782
  5  0.000556932
  6  16.2127
  7  17.5474
  8  7.05789
  9  11.8947
  10  11.1003
  11  74.0332
  12  5.9059
  13  6.54003e-08
  14  0.000833704
  15  15.8988
  16  42.3654
  17  5.44534e-06
  18  5.80719
  19  0.253398
  20  0.155097
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  6.540e-08  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.010e+00  1.551e-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.186e+00  2.534e-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: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531979/likelihoodResults_668822401_669081601_4FGL_J2330.5+1102_daily_bin1657.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) = 6753.71875825
delta logL = -0.00249727586379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6753.71626085
delta logL = 1.20034201245e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7756       1.0000          .0000       10.000    
     3 'Normalizat'    1.1857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6753.716     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.078        .11057E-01** at limit **
   2  Index         2.2219        8.5044        .50000       -.15290E-05
   3  Normalizat    1.1857        .17558E-01    .31162E-03    .73914E-04
   4  Prefactor     1.0098        .11092E-01    .21011E-03    .12524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22189
  Normalizat = 1.18574
  Prefactor  = 1.00979
 **********
 **   18 **HESSE 
 **********

 FCN=   6753.716     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    186.42        .11824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2219        5.2460        .50000       -.58911    
   3  Normalizat    1.1857        .57872E-01    .12465E-04   -.87045    
   4  Prefactor     1.0098        .36561E-01    .42022E-04   -.92404    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31834e-07
Minuit parameter uncertainties:
  1  7.81484e-06
  2  992.096
  3  0.0578754
  4  0.0365618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531979': 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) = 6753.71625744
delta logL = 3.53517134499e-06

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  7.815e-06  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.222e+00  9.921e+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.010e+00  3.656e-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:  1.186e+00  5.788e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/531979/cmap_HighResolution_668822401_669081601_4FGL_J2330.5+1102_daily_bin1657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2022-03-16 01:36:25.899678', job_id='531979', GAL2='1.01', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1647419785.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1657' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar 16 01:36:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 531979: <4FGL_J2330.5+1102_daily_bin1657> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1657> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Mar 16 01:20:28 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar 16 01:22:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar 16 01:22:04 2022
Terminated at Wed Mar 16 01:36:26 2022
Results reported at Wed Mar 16 01:36:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1657 352.629 11.0479 668822401 669081601 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 :                                   624.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            958 sec.

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

