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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1641
RA = 352.629, Dec = 11.0479
tmin = 664675201, tmax = 664934401
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='374089', job_status='RUN', time_executed='2022-01-27 00:41:03.639373', time_epoch_executed='1643272863.64' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374089

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374089/ft1_4FGL_J2330.5+1102_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374089/ft2_4FGL_J2330.5+1102_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374089/ft1_4FGL_J2330.5+1102_daily_bin1641.fits outfile=/scratch/kocevski/374089/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1641.fits ra=352.629 dec=11.0479 rad=12.0 tmin=664675201.0 tmax=664934401.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.77
user 3.49
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374089/ft1_filtered_4FGL_J2330.5+1102_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374089/ft2_4FGL_J2330.5+1102_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/374089/ltcube_664675201_664934401_4FGL_J2330.5+1102_daily_bin1641.fits outfile=/scratch/kocevski/374089/expmap_664675201_664934401_4FGL_J2330.5+1102_daily_bin1641.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/374089/ltcube_664675201_664934401_4FGL_J2330.5+1102_daily_bin1641.fits
.....................!
real 190.49
user 185.50
sys 4.65

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/374089/ft1_filtered_4FGL_J2330.5+1102_daily_bin1641.fits scfile=/scratch/kocevski/374089/ft2_4FGL_J2330.5+1102_daily_bin1641.fits outfile=/scratch/kocevski/374089/cmap_664675201_664934401_4FGL_J2330.5+1102_daily_bin1641.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/374089/ft1_filtered_4FGL_J2330.5+1102_daily_bin1641.fits scfile=/scratch/kocevski/374089/ft2_4FGL_J2330.5+1102_daily_bin1641.fits outfile=/scratch/kocevski/374089/cmap_HighResolution_664675201_664934401_4FGL_J2330.5+1102_daily_bin1641.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8369       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.536       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.237       1.0000         .10000E-03   10000.    
    12 'norm      '    .39107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.039       1.0000         .10000E-03   10000.    
    15 'norm      '    9.6123       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3955       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71227       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=   6317.115     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2027 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.766        .11121E-06** at limit **
   2  Prefactor     .10000E-03    4.4848       -.71538E-07** at limit **
   3  Prefactor     .71137        .17114       -.16049E-07   -.16261E-03
   4  Prefactor     18.912        33.135       -.61667E-06   -.46114E-04
   5  Prefactor     7.6172        7.1585        .14210E-05   -.66914E-03
   6  Prefactor     7.2526        9.5471        .11371E-05   -.31885E-03
   7  Prefactor     7.8362        15.598        .32811E-07   -.30011E-04
   8  Prefactor     3.9442        5.3334        .58827E-06    .35564E-04
   9  Prefactor     31.537        15.558        .28419E-08    .15044E-03
  10  Prefactor     .10000E-03    19.374        .25396E-05** at limit **
  11  Prefactor     32.233        45.069       -.13020E-05   -.84081E-04
  12  norm          .10000E-03    7.1573       -.27797E-06** at limit **
  13  Prefactor     .10000E-03    5.1091       -.20640E-07** at limit **
  14  Prefactor     14.039        27.828        .11279E-05   -.40640E-04
  15  norm          9.6130        14.323        .20996E-06    .83725E-05
  16  Prefactor     .10000E-03    23.551       -.19342E-05** at limit **
  17  Prefactor     .10000E-03    14.743       -.58594E-06** at limit **
  18  Prefactor     4.3953        4.2905       -.84629E-06   -.82587E-03
  19  Normalizat    1.2005        .19993       -.20486E-06   -.11797E-04
  20  Prefactor     .71223        .12036       -.31354E-06   -.55215E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.711369
  Prefactor  = 18.9125
  Prefactor  = 7.61715
  Prefactor  = 7.25258
  Prefactor  = 7.83622
  Prefactor  = 3.94423
  Prefactor  = 31.5368
  Prefactor  = 0.000100002
  Prefactor  = 32.2334
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0389
  norm       = 9.61298
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.39533
  Normalizat = 1.20054
  Prefactor  = 0.712234
 **********
 **   18 **HESSE 
 **********

 FCN=   6317.115     FROM HESSE     STATUS=OK           297 CALLS     2324 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4863        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71137        .17113        .15375E-04   -1.5539    
   4  Prefactor     18.912        33.250        .92094E-04   -1.4838    
   5  Prefactor     7.6172        7.5301        .72650E-03   -1.5156    
   6  Prefactor     7.2526        9.7199        .74470E-03   -1.5169    
   7  Prefactor     7.8362        15.606        .14323E-03   -1.5148    
   8  Prefactor     3.9442        5.3117        .20226E-03   -1.5311    
   9  Prefactor     31.537        15.040        .71351E-04   -1.4584    
  10  Prefactor     .10000E-03    20.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.233        45.476        .70572E-04   -1.4572    
  12  norm          .10000E-03    20.394        .38191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1662        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.039        27.829        .53449E-03   -1.4958    
  15  norm          9.6130        14.325        .12925E-03   -1.5088    
  16  Prefactor     .10000E-03    24.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3953        4.5363        .16675E-03   -1.5289    
  19  Normalizat    1.2005        .23280        .27045E-03   -.86586    
  20  Prefactor     .71223        .13995        .21097E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04556e-09
Minuit parameter uncertainties:
  1  1.59017e-05
  2  6.23311e-06
  3  0.171126
  4  33.2822
  5  7.53106
  6  9.72201
  7  15.6145
  8  5.31237
  9  15.0422
  10  0.000376099
  11  45.5247
  12  4.05049e-05
  13  3.73021e-06
  14  27.8547
  15  14.3305
  16  0.000366938
  17  8.94944e-05
  18  4.53665
  19  0.233005
  20  0.140021
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.201e+00  2.330e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374089/likelihoodResults_664675201_664934401_4FGL_J2330.5+1102_daily_bin1641.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) = 6317.11631909
delta logL = -0.000922516400351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6317.11539665
delta logL = -7.98490873422e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7989       1.0000          .0000       10.000    
     3 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71230       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=   6317.115     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2893        .17601E-02** at limit **
   2  Index         2.8111        6.4051        .50000       -.21855E-04
   3  Normalizat    1.2005        .22252        .27045E-03    .11384E-03
   4  Prefactor     .71223        .13806        .21097E-03    .11516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.81112
  Normalizat = 1.20054
  Prefactor  = 0.712233
 **********
 **   18 **HESSE 
 **********

 FCN=   6317.115     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2628        .35201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8111        6.3894        .50000       -.45312    
   3  Normalizat    1.2005        .22270        .10818E-04   -.86586    
   4  Prefactor     .71223        .13818        .84388E-05   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06777e-09
Minuit parameter uncertainties:
  1  0.000230449
  2  4.51303
  3  0.222875
  4  0.138243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374089': 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) = 6317.11539646
delta logL = 1.18064235721e-07

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.304e-04  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.811e+00  4.513e+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:  7.122e-01  1.382e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.201e+00  2.229e-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/374089/cmap_HighResolution_664675201_664934401_4FGL_J2330.5+1102_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2022-01-27 00:50:55.600829', job_id='374089', GAL2='0.71', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1643273455.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1641' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:50:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 374089: <4FGL_J2330.5+1102_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:47 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:48 2022
Terminated at Thu Jan 27 00:50:56 2022
Results reported at Thu Jan 27 00:50:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1641 352.629 11.0479 664675201 664934401 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 :                                   594.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            609 sec.

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

