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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1406
RA = 352.629, Dec = 11.0479
tmin = 603763201, tmax = 604022401
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='1676', job_status='RUN', time_executed='2021-09-29 22:39:36.549323', time_epoch_executed='1632980376.55' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1676/ft1_4FGL_J2330.5+1102_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1676/ft2_4FGL_J2330.5+1102_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1676/ft1_4FGL_J2330.5+1102_daily_bin1406.fits outfile=/scratch/kocevski/1676/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1406.fits ra=352.629 dec=11.0479 rad=12.0 tmin=603763201.0 tmax=604022401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.20
user 3.96
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1676/ft1_filtered_4FGL_J2330.5+1102_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/1676/ft2_4FGL_J2330.5+1102_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/1676/ltcube_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.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/1676/ft2_4FGL_J2330.5+1102_daily_bin1406.fits
.....................!
real 11.98
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1676/ft1_filtered_4FGL_J2330.5+1102_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/1676/ft2_4FGL_J2330.5+1102_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/1676/ltcube_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.fits outfile=/scratch/kocevski/1676/expmap_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.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/1676/ltcube_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.fits
.....................!
real 190.93
user 185.47
sys 5.09

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/1676/ft1_filtered_4FGL_J2330.5+1102_daily_bin1406.fits scfile=/scratch/kocevski/1676/ft2_4FGL_J2330.5+1102_daily_bin1406.fits outfile=/scratch/kocevski/1676/cmap_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1676/ft1_filtered_4FGL_J2330.5+1102_daily_bin1406.fits scfile=/scratch/kocevski/1676/ft2_4FGL_J2330.5+1102_daily_bin1406.fits outfile=/scratch/kocevski/1676/cmap_HighResolution_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22062       1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.132       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9310       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11630E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7967       1.0000         .10000E-03   10000.    
    15 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19650E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62696       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2132       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=   7602.890     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2108 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96470        51.125       -.72643E-05    .22545E-03
   2  Prefactor     .10000E-03    5.3346       -.59676E-07** at limit **
   3  Prefactor     .22087        .13613        .27331E-06    .38363E-02
   4  Prefactor     74.136        53.724        .47429E-06    .42433E-04
   5  Prefactor     2.8232        6.0533        .24799E-06    .99712E-05
   6  Prefactor     7.6455        16.162       -.52084E-07    .95613E-05
   7  Prefactor     .10000E-03    51.869       -.22152E-05** at limit **
   8  Prefactor     6.1174        6.8173       -.42137E-06   -.17741E-03
   9  Prefactor     3.9413        11.499       -.11806E-05   -.14562E-03
  10  Prefactor     2.4798        27.442        .49184E-06   -.15611E-04
  11  Prefactor     .10000E-03    57.754        .25827E-05** at limit **
  12  norm          18.493        20.530       -.19316E-06    .71064E-04
  13  Prefactor     9.4078        15.214        .91506E-06    .14594E-03
  14  Prefactor     4.8092        35.291       -.26599E-05   -.55402E-04
  15  norm          .10000E-03    9.5196        .16400E-06** at limit **
  16  Prefactor     12.315        40.089       -.30623E-07   -.14281E-04
  17  Prefactor     12.254        23.825       -.11087E-05   -.74451E-04
  18  Prefactor     .10000E-03    3.7548        .13831E-06** at limit **
  19  Normalizat    .62680        .22761       -.13544E-05    .13830E-03
  20  Prefactor     1.2132        .13120        .16470E-06    .29912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.964697
  Prefactor  = 0.0001
  Prefactor  = 0.220867
  Prefactor  = 74.1356
  Prefactor  = 2.82318
  Prefactor  = 7.64546
  Prefactor  = 0.000100001
  Prefactor  = 6.11738
  Prefactor  = 3.94127
  Prefactor  = 2.4798
  Prefactor  = 0.000100001
  norm       = 18.4927
  Prefactor  = 9.4078
  Prefactor  = 4.80921
  norm       = 0.0001
  Prefactor  = 12.3148
  Prefactor  = 12.2539
  Prefactor  = 0.0001
  Normalizat = 0.626795
  Prefactor  = 1.21321
 **********
 **   18 **HESSE 
 **********

 FCN=   7602.890     FROM HESSE     STATUS=OK           307 CALLS     2415 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96470        43.315        .15208       -1.5512    
   2  Prefactor     .10000E-03    5.3383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22087        .14230        .11733E-03   -1.5614    
   4  Prefactor     74.136        53.599        .46632E-04   -1.3984    
   5  Prefactor     2.8232        6.0143        .24195E-03   -1.5372    
   6  Prefactor     7.6455        16.115        .14503E-03   -1.5155    
   7  Prefactor     .10000E-03    53.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1174        6.7577        .16231E-03   -1.5213    
   9  Prefactor     3.9413        11.550        .20347E-03   -1.5311    
  10  Prefactor     2.4798        26.651        .25966E-03   -1.5393    
  11  Prefactor     .10000E-03    58.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.493        20.071        .93135E-04   -1.4848    
  13  Prefactor     9.4078        14.950        .13064E-03   -1.5094    
  14  Prefactor     4.8092        35.338        .18369E-03   -1.5269    
  15  norm          .10000E-03    9.6009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.315        40.059        .11483E-03   -1.5006    
  17  Prefactor     12.254        23.922        .11442E-03   -1.5008    
  18  Prefactor     .10000E-03    20.557        .32313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .62680        .24444        .39405E-03   -1.0686    
  20  Prefactor     1.2132        .14516        .18464E-03   -.85926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46036e-09
Minuit parameter uncertainties:
  1  12.9377
  2  4.51879e-06
  3  0.142304
  4  53.6337
  5  6.01555
  6  16.1238
  7  0.000330234
  8  6.75852
  9  11.5561
  10  16.2681
  11  0.000461931
  12  20.0781
  13  14.9556
  14  26.0942
  15  3.45988e-06
  16  40.1464
  17  23.9408
  18  4.14728e-05
  19  0.244864
  20  0.145206
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  9.408e+00  1.496e+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.213e+00  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  6.268e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 1.05e-07
Energy Flux (Fixed Index): 1.49e-05 +/- 2.37e-05

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

Saving results to:
/scratch/kocevski/1676/likelihoodResults_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.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) = 7601.50880421
delta logL = 1.38088488774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7601.4735889
delta logL = 1.41610019738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6714       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6419       1.0000          .0000       10.000    
     3 'Normalizat'    .53343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2549       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.

 FCN=   7601.474     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      251 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6721        13.279        .81514E-02    .11366E-02
   2  Index         4.6418        2.9729        .13763        .21976E-03
   3  Normalizat    .53350        .60227E-01    .95762E-01    .50782E-04
   4  Prefactor     1.2549        .38349E-01    .33446E-01   -.12411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67209
  Index      = 4.64181
  Normalizat = 0.533504
  Prefactor  = 1.25488
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.474     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6721        25.493        .60243E-04   -1.5449    
   2  Index         4.6418        7.0459        .52771E-02   -.71699E-01
   3  Normalizat    .53350        .21669        .42436E-03   -1.1089    
   4  Prefactor     1.2549        .13487        .18185E-03   -.84659    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67673e-09
Minuit parameter uncertainties:
  1  13.0642
  2  5.11484
  3  0.217032
  4  0.134912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1676': 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) = 7601.47358863
delta logL = 1.41610046766

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.672e+00  1.306e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  4.642e+00  5.115e+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.255e+00  1.349e-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:  5.335e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 352.629 11.048
Photon Index (Free Index): 4.64 +/- 5.11
Photon Flux (Free Index): 1.44e-07 +/- 9.45e-08
Energy Flux (Free Index): 1.98e-05 +/- 2.04e-05

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/1676/cmap_HighResolution_603763201_604022401_4FGL_J2330.5+1102_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='1.98e-05', photon_flux_error='1.05e-07', dlogl='1.42e+00', energy_flux='1.49e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-29 22:51:04.513221', photon_index_error2='5.11', photon_index2='4.64', ts='1.10', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='2.04e-05', EG='0.63', time_epoch_completed='1632981064.51', return_code='0', job_id='1676', GAL2='1.25', EG2='0.53', return_code2='102', energy_flux_error='2.37e-05', photon_flux_error2='9.45e-08', ts2='4.34', photon_index='2.79' WHERE bin_id='1406' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:51:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 1676: <4FGL_J2330.5+1102_daily_bin1406> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1406 352.629 11.0479 603763201 604022401 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 :                                   653.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

