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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1187
RA = 352.629, Dec = 11.0479
tmin = 546998401, tmax = 547257601
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='1351', job_status='RUN', time_executed='2021-09-29 22:35:52.175090', time_epoch_executed='1632980152.18' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1351

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1351/ft1_4FGL_J2330.5+1102_daily_bin1187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1351/ft1_4FGL_J2330.5+1102_daily_bin1187.fits outfile=/scratch/kocevski/1351/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1187.fits ra=352.629 dec=11.0479 rad=12.0 tmin=546998401.0 tmax=547257601.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.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/1351/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1187.fits evtable="EVENTS" outfile="/scratch/kocevski/1351/ft1_filtered_4FGL_J2330.5+1102_daily_bin1187.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1351/ft1_filtered_4FGL_J2330.5+1102_daily_bin1187.fits" evtable="EVENTS" scfile=/scratch/kocevski/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.fits sctable="SC_DATA" outfile=/scratch/kocevski/1351/ltcube_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.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/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.fits
.....................!
real 11.97
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1351/ft1_filtered_4FGL_J2330.5+1102_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.fits sctable="SC_DATA" expcube=/scratch/kocevski/1351/ltcube_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.fits outfile=/scratch/kocevski/1351/expmap_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.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/1351/ltcube_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.fits
.....................!
real 191.94
user 186.21
sys 5.42

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/1351/ft1_filtered_4FGL_J2330.5+1102_daily_bin1187.fits scfile=/scratch/kocevski/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.fits outfile=/scratch/kocevski/1351/cmap_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1351/ft1_filtered_4FGL_J2330.5+1102_daily_bin1187.fits scfile=/scratch/kocevski/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.fits outfile=/scratch/kocevski/1351/cmap_HighResolution_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.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/1351/ft1_filtered_4FGL_J2330.5+1102_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/1351/ft2_4FGL_J2330.5+1102_daily_bin1187.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1351/Model_4FGL_J2330.5+1102_daily_bin1187.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/1351/ft1_filtered_4FGL_J2330.5+1102_daily_bin1187.fits.....................!
real 93.36
user 92.02
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1755       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18099E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4997       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6868       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3024       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95794       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0783       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=   8537.922     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2054 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8287        .31013E-06** at limit **
   2  Prefactor     .10000E-03    7.0340       -.28915E-06** at limit **
   3  Prefactor     .80380        .15381       -.11162E-07   -.25125E-03
   4  Prefactor     10.923        44.109        .57173E-05    .12436E-03
   5  Prefactor     6.1752        5.9149        .23520E-05   -.78209E-03
   6  Prefactor     12.583        11.598       -.12199E-05   -.42585E-03
   7  Prefactor     .10000E-03    6.7836        .27255E-06** at limit **
   8  Prefactor     9.2479        7.4248        .99013E-06    .10410E-03
   9  Prefactor     .10000E-03    4.8666       -.44669E-07** at limit **
  10  Prefactor     11.770        16.072       -.40090E-05   -.82406E-03
  11  Prefactor     .10008E-03    643.76       -.14582E-04** at limit **
  12  norm          .10000E-03    2.1156       -.18087E-06** at limit **
  13  Prefactor     5.4996        6.2328        .39508E-05   -.10368E-02
  14  Prefactor     .10000E-03    15.224       -.12042E-05** at limit **
  15  norm          3.6883        14.213       -.29556E-05   -.27631E-03
  16  Prefactor     .10000E-03    14.019        .13333E-05** at limit **
  17  Prefactor     .10000E-03    10.426       -.28638E-06** at limit **
  18  Prefactor     5.3028        5.3914        .30263E-07   -.20919E-03
  19  Normalizat    .95803        .21453       -.18141E-05   -.83720E-05
  20  Prefactor     1.0782        .12341       -.20129E-06   -.77508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.803802
  Prefactor  = 10.9231
  Prefactor  = 6.17523
  Prefactor  = 12.5834
  Prefactor  = 0.0001
  Prefactor  = 9.24792
  Prefactor  = 0.0001
  Prefactor  = 11.77
  Prefactor  = 0.000100085
  norm       = 0.0001
  Prefactor  = 5.49962
  Prefactor  = 0.000100001
  norm       = 3.68827
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.30276
  Normalizat = 0.958034
  Prefactor  = 1.07822
 **********
 **   18 **HESSE 
 **********

 FCN=   8537.922     FROM HESSE     STATUS=OK           287 CALLS     2341 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .80380        .15371        .15080E-04   -1.5529    
   4  Prefactor     10.923        44.777        .12112E-03   -1.5047    
   5  Prefactor     6.1752        5.9671        .80774E-03   -1.5211    
   6  Prefactor     12.583        11.665        .11293E-03   -1.4998    
   7  Prefactor     .10000E-03    6.7893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2479        7.4623        .13178E-03   -1.5100    
   9  Prefactor     .10000E-03    4.8922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.770        16.869        .11678E-03   -1.5022    
  11  Prefactor     .10008E-03    667.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1204        .13128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4996        6.3858        .85665E-03   -1.5239    
  14  Prefactor     .10000E-03    15.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6883        14.339        .21034E-03   -1.5324    
  16  Prefactor     .10000E-03    14.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3028        5.3941        .17454E-03   -1.5247    
  19  Normalizat    .95803        .24928        .34910E-03   -.94450    
  20  Prefactor     1.0782        .14384        .20146E-03   -.90166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8665e-09
Minuit parameter uncertainties:
  1  3.92442e-05
  2  3.49832e-05
  3  0.153712
  4  44.2883
  5  5.96767
  6  11.6673
  7  2.05049e-05
  8  7.46308
  9  1.14198e-05
  10  16.876
  11  0.015233
  12  1.16447e-05
  13  6.38659
  14  0.000221935
  15  14.352
  16  0.000226503
  17  4.65755e-05
  18  5.3946
  19  0.249584
  20  0.143888
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  5.500e+00  6.387e+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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.078e+00  1.439e-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:  9.580e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 8.71e-06 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/1351/likelihoodResults_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.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) = 8537.90874863
delta logL = 0.012763456114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8537.90147868
delta logL = 0.020033410412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6287       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0259       1.0000          .0000       10.000    
     3 'Normalizat'    .95005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0820       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=   8537.901     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      257 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6309        9.0085        .93538E-03   -.19191E-03
   2  Index         3.0259        1.5298        .12578E-01    .34897E-03
   3  Normalizat    .95002        .24068        .35044E-03   -.44100E-03
   4  Prefactor     1.0820        .14477        .20116E-03   -.82769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.6309
  Index      = 3.02587
  Normalizat = 0.950016
  Prefactor  = 1.082
 **********
 **   18 **HESSE 
 **********

 FCN=   8537.901     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6309        7.4406        .37415E-04   -1.5278    
   2  Index         3.0259        1.2701        .25156E-02   -.40588    
   3  Normalizat    .95002        .24050        .14018E-04   -.94724    
   4  Prefactor     1.0820        .14447        .40232E-04   -.90044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4573e-10
Minuit parameter uncertainties:
  1  7.44211
  2  1.28685
  3  0.240772
  4  0.144526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1351': 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) = 8537.90147858
delta logL = 0.0200335118607

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  4.631e+00  7.442e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  3.026e+00  1.287e+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.082e+00  1.445e-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:  9.500e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 352.629 11.048
Photon Index (Free Index): 3.03 +/- 1.29
Photon Flux (Free Index): 4.34e-08 +/- 5.25e-08
Energy Flux (Free Index): 8.55e-06 +/- 9.72e-06

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/1351/cmap_HighResolution_546998401_547257601_4FGL_J2330.5+1102_daily_bin1187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='8.55e-06', photon_flux_error='4.47e-08', dlogl='2.00e-02', energy_flux='8.71e-06', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-09-29 22:47:34.783979', photon_index_error2='1.29', photon_index2='3.03', ts='1.02', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='9.72e-06', EG='0.96', time_epoch_completed='1632980854.78', return_code='0', job_id='1351', GAL2='1.08', EG2='0.95', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='5.25e-08', ts2='1.07', photon_index='2.79' WHERE bin_id='1187' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:47:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 1351: <4FGL_J2330.5+1102_daily_bin1187> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1187 352.629 11.0479 546998401 547257601 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 :                                   689.00 sec.
    Max Memory :                                 1230 MB
    Average Memory :                             359.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

