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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1001
RA = 352.629, Dec = 11.0479
tmin = 498787201, tmax = 499046401
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='73', job_status='RUN', time_executed='2021-09-29 22:32:09.907530', time_epoch_executed='1632979929.91' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73/ft1_4FGL_J2330.5+1102_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73/ft2_4FGL_J2330.5+1102_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73/ft1_4FGL_J2330.5+1102_daily_bin1001.fits outfile=/scratch/kocevski/73/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1001.fits ra=352.629 dec=11.0479 rad=12.0 tmin=498787201.0 tmax=499046401.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 5.08
user 4.83
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73/ft1_filtered_4FGL_J2330.5+1102_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/73/ft2_4FGL_J2330.5+1102_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/73/ltcube_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.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/73/ft2_4FGL_J2330.5+1102_daily_bin1001.fits
.....................!
real 11.69
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73/ft1_filtered_4FGL_J2330.5+1102_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/73/ft2_4FGL_J2330.5+1102_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/73/ltcube_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.fits outfile=/scratch/kocevski/73/expmap_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.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/73/ltcube_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.fits
.....................!
real 190.80
user 185.12
sys 5.35

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/73/ft1_filtered_4FGL_J2330.5+1102_daily_bin1001.fits scfile=/scratch/kocevski/73/ft2_4FGL_J2330.5+1102_daily_bin1001.fits outfile=/scratch/kocevski/73/cmap_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.629 yref=11.0479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73/ft1_filtered_4FGL_J2330.5+1102_daily_bin1001.fits scfile=/scratch/kocevski/73/ft2_4FGL_J2330.5+1102_daily_bin1001.fits outfile=/scratch/kocevski/73/cmap_HighResolution_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.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/73/ft1_filtered_4FGL_J2330.5+1102_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/73/ft2_4FGL_J2330.5+1102_daily_bin1001.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73/Model_4FGL_J2330.5+1102_daily_bin1001.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/73/ft1_filtered_4FGL_J2330.5+1102_daily_bin1001.fits.....................!
real 74.83
user 73.49
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.069       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1777       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45046E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1108       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99847E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14429E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.8698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26941E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31644E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73342E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21197E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86182       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0243       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=   6572.691     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2124 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.994        51.459       -.54456E-04    .23190E-04
   2  Prefactor     .10000E-03    12.524       -.10191E-05** at limit **
   3  Prefactor     3.8318        .38248        .22228E-06   -.24712E-02
   4  Prefactor     17.102        40.056       -.11254E-04    .86165E-04
   5  Prefactor     6.1817        8.9105       -.23955E-07   -.21045E-04
   6  Prefactor     .10000E-03    14.504        .14728E-05** at limit **
   7  Prefactor     .10000E-03    67.246       -.42499E-04** at limit **
   8  Prefactor     6.1099        9.9801       -.12514E-05   -.84052E-04
   9  Prefactor     .96087E-01    11.208       -.15157E-05    .26031E-03
  10  Prefactor     .10000E-03    11.575        .42897E-06** at limit **
  11  Prefactor     .10000E-03    72.680        .26883E-04** at limit **
  12  norm          7.8498        8.4814        .10110E-05    .10292E-02
  13  Prefactor     .10017E-03    6.7806       -.37240E-05** at limit **
  14  Prefactor     .10000E-03    9.5761        .22925E-07** at limit **
  15  norm          .10000E-03    5.3460       -.50038E-08** at limit **
  16  Prefactor     .10001E-03    213.00        .28917E-04** at limit **
  17  Prefactor     .10051E-03    17.804        .15555E-06** at limit **
  18  Prefactor     .10023E-03    4.8910        .70687E-06** at limit **
  19  Normalizat    .86179        .23872        .14958E-05    .54453E-03
  20  Prefactor     1.0245        .14099        .11870E-05    .77138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9938
  Prefactor  = 0.0001
  Prefactor  = 3.83177
  Prefactor  = 17.102
  Prefactor  = 6.1817
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 6.10992
  Prefactor  = 0.0960867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.84978
  Prefactor  = 0.000100173
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.00010051
  Prefactor  = 0.000100228
  Normalizat = 0.861791
  Prefactor  = 1.02453
 **********
 **   18 **HESSE 
 **********

 FCN=   6572.691     FROM HESSE     STATUS=OK           305 CALLS     2429 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.994        51.612        .69682E-04   -1.4559    
   2  Prefactor     .10000E-03    12.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8318        .38314        .14741E-04   -1.5316    
   4  Prefactor     17.102        40.076        .96775E-04   -1.4881    
   5  Prefactor     6.1817        8.9069        .16152E-03   -1.5211    
   6  Prefactor     .10000E-03    14.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    69.022        .38686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1099        9.9675        .16241E-03   -1.5214    
   9  Prefactor     .96087E-01    16.805        .73246E-01   -1.5646    
  10  Prefactor     .10000E-03    11.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    72.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.8498        8.2580        .14293E-03   -1.5148    
  13  Prefactor     .10017E-03    24.007        .38284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    220.67        .42734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10051E-03    21.407        .10139       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10023E-03    44.277        .34612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86179        .27268        .37165E-03   -.97816    
  20  Prefactor     1.0245        .16404        .21114E-03   -.91916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38456e-08
Minuit parameter uncertainties:
  1  51.682
  2  3.73107e-05
  3  0.383141
  4  40.1393
  5  8.90879
  6  8.30477e-06
  7  0.00114125
  8  9.97024
  9  2.54088
  10  1.32939e-06
  11  0.000152887
  12  8.25919
  13  0.00407668
  14  2.78622e-06
  15  1.68328e-06
  16  0.00281489
  17  0.0066128
  18  0.0063593
  19  0.273117
  20  0.164122
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.025e+00  1.641e-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.618e-01  2.731e-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.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73/likelihoodResults_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.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) = 6572.69126434
delta logL = -0.000196927601792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6572.69106721
delta logL = 2.04406205739e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8746       1.0000          .0000       10.000    
     3 'Normalizat'    .86196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0245       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6572.653     FROM MIGRAD    STATUS=FAILED       146 CALLS      308 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37400        2.1757        .16241E-02   -.84923E-02
   2  Index         4.3507        2.9018        .81881E-02   -.74836E-05
   3  Normalizat    .83643        .27929        .37678E-03    .39647E-04
   4  Prefactor     1.0335        .16666        .21032E-03    .15300E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6572.653     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      380 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37400        2.1757        .14164E-03   -1.5830    
   2  Index         4.3507        2.9018        .34420E-02   -.13023    
   3  Normalizat    .83643        .27929        .36375E-03   -.98731    
   4  Prefactor     1.0335        .16666        .18158E-03   -.91620    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6572.653     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      410 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37400        3.5329        .32482E-03   -.52884E-04
   2  Index         4.3507        3.5175        .32753E-03   -.24298E-06
   3  Normalizat    .83643        .27864        .15071E-04   -.90519E-06
   4  Prefactor     1.0335        .16654        .42063E-04   -.91894E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.374
  Index      = 4.35072
  Normalizat = 0.836432
  Prefactor  = 1.03352
 **********
 **   18 **HESSE 
 **********

 FCN=   6572.653     FROM HESSE     STATUS=OK            25 CALLS      435 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37400        4.7502        .12993E-04   -1.5830    
   2  Index         4.3507        3.9250        .13101E-04   -.13022    
   3  Normalizat    .83643        .27855        .30143E-05   -.98731    
   4  Prefactor     1.0335        .16652        .84127E-05   -.91620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00269e-12
Minuit parameter uncertainties:
  1  2.66567
  2  4.52933
  3  0.279028
  4  0.166604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73': 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) = 6572.65250744
delta logL = 0.0385599665524

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.034e+00  1.666e-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.364e-01  2.790e-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/73/cmap_HighResolution_498787201_499046401_4FGL_J2330.5+1102_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-29 22:42:43.678098', job_id='73', GAL2='1.03', fit_tolerance='1e-08', EG2='0.84', EG='0.86', time_epoch_completed='1632980563.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.86e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1001' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:42:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 73: <4FGL_J2330.5+1102_daily_bin1001> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1001> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:30:44 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:30:46 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:30:46 2021
Terminated at Wed Sep 29 22:42:44 2021
Results reported at Wed Sep 29 22:42:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1001 352.629 11.0479 498787201 499046401 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

