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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1126
RA = 352.629, Dec = 11.0479
tmin = 531187201, tmax = 531446401
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='1259', job_status='RUN', time_executed='2021-09-29 22:39:02.448948', time_epoch_executed='1632980342.45' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1259

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1259/ft1_4FGL_J2330.5+1102_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1259/ft2_4FGL_J2330.5+1102_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1259/ft1_4FGL_J2330.5+1102_daily_bin1126.fits outfile=/scratch/kocevski/1259/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1126.fits ra=352.629 dec=11.0479 rad=12.0 tmin=531187201.0 tmax=531446401.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.98
user 3.73
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1259/ft2_4FGL_J2330.5+1102_daily_bin1126.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/1259/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/1259/ft1_filtered_4FGL_J2330.5+1102_daily_bin1126.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.50
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1259/ft1_filtered_4FGL_J2330.5+1102_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/1259/ft2_4FGL_J2330.5+1102_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/1259/ltcube_531187201_531446401_4FGL_J2330.5+1102_daily_bin1126.fits outfile=/scratch/kocevski/1259/expmap_531187201_531446401_4FGL_J2330.5+1102_daily_bin1126.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/1259/ltcube_531187201_531446401_4FGL_J2330.5+1102_daily_bin1126.fits
.....................!
real 190.49
user 185.09
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/1259/ft1_filtered_4FGL_J2330.5+1102_daily_bin1126.fits scfile=/scratch/kocevski/1259/ft2_4FGL_J2330.5+1102_daily_bin1126.fits outfile=/scratch/kocevski/1259/cmap_531187201_531446401_4FGL_J2330.5+1102_daily_bin1126.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1259/ft1_filtered_4FGL_J2330.5+1102_daily_bin1126.fits scfile=/scratch/kocevski/1259/ft2_4FGL_J2330.5+1102_daily_bin1126.fits outfile=/scratch/kocevski/1259/cmap_HighResolution_531187201_531446401_4FGL_J2330.5+1102_daily_bin1126.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.860       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2561       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.210       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94839       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=   6636.922     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2044 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.860        41.364       -.72511E-06    .11462E-04
   2  Prefactor     24.694        19.538        .13102E-05    .37539E-04
   3  Prefactor     1.3202        .23012        .50363E-07    .80194E-03
   4  Prefactor     .10000E-03    39.722       -.57230E-04** at limit **
   5  Prefactor     6.2560        7.0226       -.23086E-05   -.82452E-04
   6  Prefactor     .10000E-03    5.2140       -.79768E-07** at limit **
   7  Prefactor     2.3348        18.827       -.47903E-05   -.10691E-03
   8  Prefactor     .10000E-03    3.4457        .50321E-06** at limit **
   9  Prefactor     3.6344        9.0849       -.83659E-05   -.11265E-03
  10  Prefactor     .10000E-03    12.302        .66674E-07** at limit **
  11  Prefactor     .10000E-03    35.626        .38942E-04** at limit **
  12  norm          .10000E-03    3.7949       -.49355E-06** at limit **
  13  Prefactor     .90342E-01    7.1017       -.50642E-05   -.17560E-03
  14  Prefactor     10.291        30.069        .50022E-04    .31475E-03
  15  norm          .10000E-03    15.153       -.47655E-06** at limit **
  16  Prefactor     .10000E-03    74.754        .14246E-04** at limit **
  17  Prefactor     .10000E-03    6.0545       -.60786E-07** at limit **
  18  Prefactor     .10000E-03    2.5224        .10294E-06** at limit **
  19  Normalizat    1.0874        .20954       -.25095E-05    .80245E-03
  20  Prefactor     .94821        .12782       -.16507E-06    .81227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.8596
  Prefactor  = 24.6935
  Prefactor  = 1.32018
  Prefactor  = 0.0001
  Prefactor  = 6.25599
  Prefactor  = 0.0001
  Prefactor  = 2.33479
  Prefactor  = 0.0001
  Prefactor  = 3.63437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0903416
  Prefactor  = 10.2907
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08737
  Prefactor  = 0.948211
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.922     FROM HESSE     STATUS=OK           291 CALLS     2335 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.860        41.459        .69902E-04   -1.4561    
   2  Prefactor     24.694        19.551        .80609E-04   -1.4714    
   3  Prefactor     1.3202        .23097        .15275E-04   -1.5478    
   4  Prefactor     .10000E-03    39.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2560        7.0227        .16049E-03   -1.5208    
   6  Prefactor     .10000E-03    5.2259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3348        18.847        .26808E-03   -1.5402    
   8  Prefactor     .10000E-03    8.3397        .29147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6344        9.0666        .21210E-03   -1.5327    
  10  Prefactor     .10000E-03    12.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8045        .15471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90342E-01    9.4734        .54927E-01   -1.5648    
  14  Prefactor     10.291        30.470        .12540E-03   -1.5066    
  15  norm          .10000E-03    15.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    75.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5405        .12635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0874        .24752        .30623E-03   -.90158    
  20  Prefactor     .94821        .15170        .20290E-03   -.94476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09524e-09
Minuit parameter uncertainties:
  1  41.4951
  2  19.5563
  3  0.230972
  4  0.000263017
  5  7.02359
  6  1.53272e-05
  7  13.2726
  8  0.000124416
  9  9.07001
  10  3.33053e-05
  11  2.43204e-05
  12  4.58799e-05
  13  1.84951
  14  30.5158
  15  4.49378e-05
  16  0.000552256
  17  3.20736e-05
  18  5.0943e-06
  19  0.247788
  20  0.151764
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.482e-01  1.518e-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.087e+00  2.478e-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: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1259/likelihoodResults_531187201_531446401_4FGL_J2330.5+1102_daily_bin1126.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) = 6636.92211972
delta logL = 2.63607944362e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6636.92211969
delta logL = 5.40549081052e-08

Fit tolerance = 1e-08

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

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

 FCN=   6636.907     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      280 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89916        15.935         .0000        .23618E-01
   2  Index         1.6294        .98530         .0000       -.29407E-04
   3  Normalizat    1.0884        .20272         .0000       -.40891E-04
   4  Prefactor     .94637        .12761         .0000       -.38708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.89916
  Index      = 1.62942
  Normalizat = 1.08836
  Prefactor  = 0.946366
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.907     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89916        12.093        .18930E-02   -1.5518    
   2  Index         1.6294        2.2975        .15304E-01   -.73977    
   3  Normalizat    1.0884        .24018        .30610E-03   -.90127    
   4  Prefactor     .94637        .15089        .20308E-03   -.94539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08382e-09
Minuit parameter uncertainties:
  1  6.5962
  2  2.47963
  3  0.240424
  4  0.150954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1259': 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) = 6636.90668315
delta logL = 0.0154365978469

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  8.992e-01  6.596e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.629e+00  2.480e+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:  9.464e-01  1.510e-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.088e+00  2.404e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/1259/cmap_HighResolution_531187201_531446401_4FGL_J2330.5+1102_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-29 22:50:33.468739', job_id='1259', GAL2='0.95', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632981033.47', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.54e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1126' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 1259: <4FGL_J2330.5+1102_daily_bin1126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1126 352.629 11.0479 531187201 531446401 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 :                                   614.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

