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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1331
RA = 352.629, Dec = 11.0479
tmin = 584323201, tmax = 584582401
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='1565', job_status='RUN', time_executed='2021-09-29 22:39:50.461680', time_epoch_executed='1632980390.46' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1565/ft1_4FGL_J2330.5+1102_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1565/ft1_4FGL_J2330.5+1102_daily_bin1331.fits outfile=/scratch/kocevski/1565/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1331.fits ra=352.629 dec=11.0479 rad=12.0 tmin=584323201.0 tmax=584582401.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.45
user 3.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.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/1565/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1331.fits evtable="EVENTS" outfile="/scratch/kocevski/1565/ft1_filtered_4FGL_J2330.5+1102_daily_bin1331.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/1565/ft1_filtered_4FGL_J2330.5+1102_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/1565/ltcube_584323201_584582401_4FGL_J2330.5+1102_daily_bin1331.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/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1565/ft1_filtered_4FGL_J2330.5+1102_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/1565/ltcube_584323201_584582401_4FGL_J2330.5+1102_daily_bin1331.fits outfile=/scratch/kocevski/1565/expmap_584323201_584582401_4FGL_J2330.5+1102_daily_bin1331.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/1565/ltcube_584323201_584582401_4FGL_J2330.5+1102_daily_bin1331.fits
.....................!
real 190.75
user 185.04
sys 5.39

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/1565/ft1_filtered_4FGL_J2330.5+1102_daily_bin1331.fits scfile=/scratch/kocevski/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.fits outfile=/scratch/kocevski/1565/cmap_584323201_584582401_4FGL_J2330.5+1102_daily_bin1331.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1565/ft1_filtered_4FGL_J2330.5+1102_daily_bin1331.fits scfile=/scratch/kocevski/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.fits outfile=/scratch/kocevski/1565/cmap_HighResolution_584323201_584582401_4FGL_J2330.5+1102_daily_bin1331.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/1565/ft1_filtered_4FGL_J2330.5+1102_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/1565/ft2_4FGL_J2330.5+1102_daily_bin1331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1565/Model_4FGL_J2330.5+1102_daily_bin1331.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/1565/ft1_filtered_4FGL_J2330.5+1102_daily_bin1331.fits.....................!
real 90.82
user 89.45
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.657       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.506       1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.474       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1822       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.000       1.0000         .10000E-03   10000.    
    15 'norm      '    28.307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85690       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97023       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=   8579.484     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1747 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.971       -.40428E-07** at limit **
   2  Prefactor     .10000E-03    9.0640        .30774E-07** at limit **
   3  Prefactor     1.6471        .22940       -.12113E-07    .19611E-03
   4  Prefactor     .10000E-03    27.245       -.23630E-06** at limit **
   5  Prefactor     .10000E-03    3.1216        .26642E-07** at limit **
   6  Prefactor     .10000E-03    3.7036       -.11461E-07** at limit **
   7  Prefactor     .10000E-03    9.9358        .62983E-07** at limit **
   8  Prefactor     .10000E-03    3.8024        .24057E-08** at limit **
   9  Prefactor     13.658        9.4815       -.15567E-06    .13399E-05
  10  Prefactor     41.502        21.617       -.71466E-06   -.32321E-04
  11  Prefactor     46.456        55.660       -.13794E-04   -.20457E-03
  12  norm          3.1807        4.2172        .15355E-05   -.20194E-02
  13  Prefactor     20.815        9.8051       -.41494E-06   -.32169E-03
  14  Prefactor     40.001        27.126       -.27206E-06   -.27366E-05
  15  norm          28.307        18.738       -.14834E-06    .27327E-05
  16  Prefactor     42.340        41.380       -.18658E-05   -.64176E-04
  17  Prefactor     .10000E-03    15.898        .68088E-07** at limit **
  18  Prefactor     .10000E-03    3.4635        .17381E-07** at limit **
  19  Normalizat    .85706        .19377        .15161E-05   -.28395E-04
  20  Prefactor     .97014        .11469        .14229E-06    .28828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.64706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6576
  Prefactor  = 41.5022
  Prefactor  = 46.4565
  norm       = 3.18069
  Prefactor  = 20.8153
  Prefactor  = 40.0006
  norm       = 28.3073
  Prefactor  = 42.3398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.857058
  Prefactor  = 0.970135
 **********
 **   18 **HESSE 
 **********

 FCN=   8579.484     FROM HESSE     STATUS=OK           289 CALLS     2036 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6471        .22947        .15881E-04   -1.5451    
   4  Prefactor     .10000E-03    27.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1481        .15978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7159        .17408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8626        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.658        9.5480        .10839E-03   -1.4969    
  10  Prefactor     41.502        21.646        .62221E-04   -1.4419    
  11  Prefactor     46.456        56.513        .58815E-04   -1.4344    
  12  norm          3.1807        7.4404        .11358E-02   -1.5351    
  13  Prefactor     20.815        10.050        .43896E-03   -1.4795    
  14  Prefactor     40.001        27.241        .63377E-04   -1.4442    
  15  norm          28.307        18.743        .75300E-04   -1.4643    
  16  Prefactor     42.340        41.489        .61606E-04   -1.4406    
  17  Prefactor     .10000E-03    16.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5199        .16829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85706        .22268        .34898E-03   -.97986    
  20  Prefactor     .97014        .13238        .20541E-03   -.93732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97979e-09
Minuit parameter uncertainties:
  1  2.06829e-05
  2  1.97848e-06
  3  0.229467
  4  3.15238e-05
  5  2.75462e-06
  6  2.8272e-06
  7  1.2987e-05
  8  2.17975e-07
  9  9.54906
  10  21.6501
  11  56.5784
  12  7.44252
  13  10.0508
  14  27.2492
  15  18.7473
  16  41.5174
  17  2.87614e-06
  18  6.95805e-06
  19  0.222914
  20  0.132424
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.082e+01  1.005e+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:  9.701e-01  1.324e-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:  8.571e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.78
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.46e-07 +/- 7.04e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.59e-05

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) = 8579.4522434
delta logL = 0.0314020087098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8579.45090578
delta logL = 0.0327396305329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.600       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9176       1.0000          .0000       10.000    
     3 'Normalizat'    .84715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97547       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=   8579.451     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      309 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.605        13.429        .46434E-03    .65851E-04
   2  Index         2.9180        .57932        .58326E-02    .51866E-03
   3  Normalizat    .84711        .21759        .35078E-03    .45373E-05
   4  Prefactor     .97540        .13383        .20495E-03    .84316E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6054
  Index      = 2.91798
  Normalizat = 0.847112
  Prefactor  = 0.975403
 **********
 **   18 **HESSE 
 **********

 FCN=   8579.451     FROM HESSE     STATUS=OK            27 CALLS      336 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.605        12.511        .92868E-04   -1.4845    
   2  Index         2.9180        .53948        .11665E-02   -.42949    
   3  Normalizat    .84711        .21756        .14031E-04   -.98344    
   4  Prefactor     .97540        .13371        .81979E-05   -.93554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06921e-12
Minuit parameter uncertainties:
  1  12.5124
  2  0.540751
  3  0.217787
  4  0.133753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1565': 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) = 8579.45090396
delta logL = 0.032741449575

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.754e-01  1.338e-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:  8.471e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.92
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.92 +/- 0.54
Photon Flux (Free Index): 1.53e-07 +/- 7.04e-08
Energy Flux (Free Index): 3.18e-05 +/- 1.48e-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/1565/cmap_HighResolution_584323201_584582401_4FGL_J2330.5+1102_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-07', energy_flux2='3.18e-05', photon_flux_error='7.04e-08', dlogl='3.27e-02', energy_flux='3.30e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-29 22:50:42.053191', photon_index_error2='0.54', photon_index2='2.92', ts='7.78', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='0.86', time_epoch_completed='1632981042.05', return_code='0', job_id='1565', GAL2='0.98', EG2='0.85', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='7.04e-08', ts2='7.92', photon_index='2.79' WHERE bin_id='1331' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:50:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 1565: <4FGL_J2330.5+1102_daily_bin1331> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1331 352.629 11.0479 584323201 584582401 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 :                                   600.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

