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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1484
RA = 352.629, Dec = 11.0479
tmin = 623980801, tmax = 624240001
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='2730', job_status='RUN', time_executed='2021-09-29 22:42:16.356458', time_epoch_executed='1632980536.36' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2730/ft1_4FGL_J2330.5+1102_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2730/ft1_4FGL_J2330.5+1102_daily_bin1484.fits outfile=/scratch/kocevski/2730/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1484.fits ra=352.629 dec=11.0479 rad=12.0 tmin=623980801.0 tmax=624240001.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.02
user 3.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.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/2730/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1484.fits evtable="EVENTS" outfile="/scratch/kocevski/2730/ft1_filtered_4FGL_J2330.5+1102_daily_bin1484.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2730/ft1_filtered_4FGL_J2330.5+1102_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/2730/ltcube_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.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/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.fits
.....................!
real 12.05
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2730/ft1_filtered_4FGL_J2330.5+1102_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/2730/ltcube_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.fits outfile=/scratch/kocevski/2730/expmap_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.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/2730/ltcube_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.fits
.....................!
real 190.70
user 185.23
sys 5.01

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/2730/ft1_filtered_4FGL_J2330.5+1102_daily_bin1484.fits scfile=/scratch/kocevski/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.fits outfile=/scratch/kocevski/2730/cmap_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2730/ft1_filtered_4FGL_J2330.5+1102_daily_bin1484.fits scfile=/scratch/kocevski/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.fits outfile=/scratch/kocevski/2730/cmap_HighResolution_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.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/2730/ft1_filtered_4FGL_J2330.5+1102_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/2730/ft2_4FGL_J2330.5+1102_daily_bin1484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2730/Model_4FGL_J2330.5+1102_daily_bin1484.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/2730/ft1_filtered_4FGL_J2330.5+1102_daily_bin1484.fits.....................!
real 68.81
user 67.41
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.933       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27414E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .45032       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.249       1.0000         .10000E-03   10000.    
    15 'norm      '    10.792       1.0000         .10000E-03   10000.    
    16 'Prefactor '    68.761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8105       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91766       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91696       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=   5976.037     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2095 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.384        .46435E-07** at limit **
   2  Prefactor     .10000E-03    12.874        .42853E-07** at limit **
   3  Prefactor     .34503        .14494        .76296E-09   -.55299E-03
   4  Prefactor     22.498        34.871        .24930E-06   -.20068E-04
   5  Prefactor     3.9085        7.4605        .20168E-06   -.94283E-04
   6  Prefactor     .10000E-03    4.7840        .36190E-07** at limit **
   7  Prefactor     14.922        15.894       -.13128E-05   -.14136E-03
   8  Prefactor     1.0071        4.7604        .21506E-05   -.97535E-04
   9  Prefactor     .10000E-03    4.7118       -.56876E-07** at limit **
  10  Prefactor     .10000E-03    4.4013       -.78265E-07** at limit **
  11  Prefactor     .10000E-03    448.16       -.83861E-05** at limit **
  12  norm          .35014        9.6428        .11915E-05   -.17845E-03
  13  Prefactor     .10000E-03    4.3721       -.33730E-07** at limit **
  14  Prefactor     10.309        21.083       -.69873E-06   -.92744E-04
  15  norm          10.794        10.139       -.22323E-06   -.65658E-04
  16  Prefactor     68.705        39.977        .79291E-07    .67589E-06
  17  Prefactor     .10000E-03    7.7876        .59948E-07** at limit **
  18  Prefactor     1.8013        9.0976        .15719E-05   -.51195E-04
  19  Normalizat    .91786        .19853       -.99427E-06   -.17463E-03
  20  Prefactor     .91715        .11953       -.29773E-06   -.24814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.345025
  Prefactor  = 22.4984
  Prefactor  = 3.90852
  Prefactor  = 0.0001
  Prefactor  = 14.9219
  Prefactor  = 1.00709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.350144
  Prefactor  = 0.0001
  Prefactor  = 10.3088
  norm       = 10.7936
  Prefactor  = 68.7046
  Prefactor  = 0.0001
  Prefactor  = 1.80132
  Normalizat = 0.917864
  Prefactor  = 0.917151
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.037     FROM HESSE     STATUS=OK           291 CALLS     2386 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .34503        .14326        .18023E-04   -1.5591    
   4  Prefactor     22.498        34.920        .84443E-04   -1.4759    
   5  Prefactor     3.9085        7.4524        .20401E-03   -1.5313    
   6  Prefactor     .10000E-03    4.7926        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.922        16.269        .10365E-03   -1.4935    
   8  Prefactor     1.0071        4.9158        .32045E-03   -1.5507    
   9  Prefactor     .10000E-03    4.7211        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4074        .15841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    456.05        .39848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .35014        63.036        .41828E-02   -1.5590    
  13  Prefactor     .10000E-03    4.4012        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.309        21.147        .12516E-03   -1.5066    
  15  norm          10.794        10.155        .12196E-03   -1.5051    
  16  Prefactor     68.705        40.025        .48406E-04   -1.4048    
  17  Prefactor     .10000E-03    7.7997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8013        9.3400        .31051E-03   -1.5440    
  19  Normalizat    .91786        .23044        .29432E-03   -.95835    
  20  Prefactor     .91715        .13948        .18597E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98105e-10
Minuit parameter uncertainties:
  1  3.38821e-06
  2  4.86885e-06
  3  0.143264
  4  34.9517
  5  7.4542
  6  1.4656e-06
  7  16.2738
  8  4.45037
  9  4.44143e-07
  10  8.07145e-06
  11  0.000551206
  12  9.40482
  13  5.58438e-06
  14  21.162
  15  10.157
  16  40.0411
  17  5.05772e-06
  18  8.20531
  19  0.230683
  20  0.139535
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  5.584e-06  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.172e-01  1.395e-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.179e-01  2.307e-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: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2730/likelihoodResults_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.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) = 5976.03794712
delta logL = -0.00108330059265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5976.03686393
delta logL = -1.18139723781e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7890       1.0000          .0000       10.000    
     3 'Normalizat'    .91780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91721       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=   5976.037     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      239 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    335.49        .15724E-02** at limit **
   2  Index         2.8314        5.5210        .50000       -.38359E-05
   3  Normalizat    .91787        .48157E-01    .29432E-03    .18282E-03
   4  Prefactor     .91715        .30617E-01    .18597E-03    .24246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100152
  Index      = 2.83135
  Normalizat = 0.917865
  Prefactor  = 0.917152
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.037     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    19.082        .31448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8314        5.2261        .50000       -.44863    
   3  Normalizat    .91787        .21758        .11773E-04   -.95835    
   4  Prefactor     .91715        .13840        .37193E-04   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67076e-08
Minuit parameter uncertainties:
  1  0.00340797
  2  452.471
  3  0.217788
  4  0.138453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2730': 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) = 5976.03686379
delta logL = 2.54531187238e-08

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.002e-04  3.408e-03  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.831e+00  4.525e+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:  9.172e-01  1.385e-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.179e-01  2.178e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/2730/cmap_HighResolution_623980801_624240001_4FGL_J2330.5+1102_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-29 22:52:02.927804', job_id='2730', GAL2='0.92', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632981122.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1484' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 2730: <4FGL_J2330.5+1102_daily_bin1484> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1484> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:40:12 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:40:14 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:40:14 2021
Terminated at Wed Sep 29 22:52:03 2021
Results reported at Wed Sep 29 22:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1484 352.629 11.0479 623980801 624240001 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 :                                   575.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

