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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1472
RA = 352.629, Dec = 11.0479
tmin = 620870401, tmax = 621129601
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='2711', job_status='RUN', time_executed='2021-09-29 22:42:14.985025', time_epoch_executed='1632980534.99' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2711/ft1_4FGL_J2330.5+1102_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2711/ft1_4FGL_J2330.5+1102_daily_bin1472.fits outfile=/scratch/kocevski/2711/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1472.fits ra=352.629 dec=11.0479 rad=12.0 tmin=620870401.0 tmax=621129601.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.20
user 2.98
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.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/2711/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1472.fits evtable="EVENTS" outfile="/scratch/kocevski/2711/ft1_filtered_4FGL_J2330.5+1102_daily_bin1472.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2711/ft1_filtered_4FGL_J2330.5+1102_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/2711/ltcube_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.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/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.fits
.....................!
real 12.59
user 12.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2711/ft1_filtered_4FGL_J2330.5+1102_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/2711/ltcube_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.fits outfile=/scratch/kocevski/2711/expmap_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.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/2711/ltcube_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.fits
.....................!
real 192.99
user 187.24
sys 5.42

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/2711/ft1_filtered_4FGL_J2330.5+1102_daily_bin1472.fits scfile=/scratch/kocevski/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.fits outfile=/scratch/kocevski/2711/cmap_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2711/ft1_filtered_4FGL_J2330.5+1102_daily_bin1472.fits scfile=/scratch/kocevski/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.fits outfile=/scratch/kocevski/2711/cmap_HighResolution_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.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/2711/ft1_filtered_4FGL_J2330.5+1102_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/2711/ft2_4FGL_J2330.5+1102_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2711/Model_4FGL_J2330.5+1102_daily_bin1472.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/2711/ft1_filtered_4FGL_J2330.5+1102_daily_bin1472.fits......................!
real 45.90
user 44.65
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74881       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.923       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11267E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.342       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12340E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6543       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .47726E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2320       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3092.705     FROM MIGRAD    STATUS=FAILED       695 CALLS     2340 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.132        .18142E-02** at limit **
   2  Prefactor     30.115        38.484        .72968E-04    .81018E-05
   3  Prefactor     .74879        .25384        .14724E-04   -.68910E-03
   4  Prefactor     .10000E-03    52.939        .18142E-02** at limit **
   5  Prefactor     .10000E-03    5.4188        .12601E-02** at limit **
   6  Prefactor     .10000E-03    26.781        .18142E-02** at limit **
   7  Prefactor     .10000E-03    29.093        .18142E-02** at limit **
   8  Prefactor     20.884        11.875        .87564E-04   -.10997E-03
   9  Prefactor     .10000E-03    25.157        .18142E-02** at limit **
  10  Prefactor     .10000E-03    30.385        .18142E-02** at limit **
  11  Prefactor     .10000E-03    99.306        .18142E-02** at limit **
  12  norm          21.316        28.395        .86701E-04   -.72184E-04
  13  Prefactor     12.575        25.890        .11281E-03   -.43587E-04
  14  Prefactor     .10000E-03    35.906        .18142E-02** at limit **
  15  norm          .10000E-03    8.1607        .15514E-02** at limit **
  16  Prefactor     .10000E-03    80.150        .18142E-02** at limit **
  17  Prefactor     .10000E-03    43.712        .18142E-02** at limit **
  18  Prefactor     6.6119        12.070        .15556E-03   -.66871E-04
  19  Normalizat    .51335E-01    1.3927        .11488E-01    .26175E-03
  20  Prefactor     1.2303        .26692        .17149E-03   -.14406E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3092.705     FROM SIMPLEX   STATUS=UNCHANGED   1010 CALLS     3350 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.132        .37778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.115        38.484        .11607E-06   -1.4610    
   3  Prefactor     .74879        .25384        .12390E-06   -1.5535    
   4  Prefactor     .10000E-03    52.939        .89622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4188        .18976E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.781        .14693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.093        .68109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.884        11.875        .11662E-06   -1.4794    
   9  Prefactor     .10000E-03    25.157        .40569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.385        .21276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    99.306        .10440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.316        28.395        .11646E-06   -1.4784    
  13  Prefactor     12.575        25.890        .11805E-06   -1.4999    
  14  Prefactor     .10000E-03    35.906        .46282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.1607        .28526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    80.150        .52680E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.712        .87011E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6119        12.070        .11980E-06   -1.5194    
  19  Normalizat    .51335E-01    1.3927        .11383E-06   -1.4421    
  20  Prefactor     1.2303        .26692        .67335E-07   -.85403    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3092.705     FROM MIGRAD    STATUS=CONVERGED    276 CALLS     3626 TOTAL
                     EDM=   .84E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.132        .36285E-03** at limit **
   2  Prefactor     30.115        38.486        .29187E-05   -.38951E-06
   3  Prefactor     .74879        .25379        .58897E-06   -.20872E-04
   4  Prefactor     .10000E-03    52.939        .36285E-03** at limit **
   5  Prefactor     .10000E-03    5.4194        .25202E-03** at limit **
   6  Prefactor     .10000E-03    26.786        .36285E-03** at limit **
   7  Prefactor     .10000E-03    29.094        .36285E-03** at limit **
   8  Prefactor     20.884        11.583        .35026E-05   -.48687E-05
   9  Prefactor     .10000E-03    25.161        .36285E-03** at limit **
  10  Prefactor     .10000E-03    30.387        .36285E-03** at limit **
  11  Prefactor     .10000E-03    99.306        .36285E-03** at limit **
  12  norm          21.316        28.390        .34680E-05   -.13113E-05
  13  Prefactor     12.574        25.671        .45123E-05   -.17636E-05
  14  Prefactor     .10000E-03    35.906        .36285E-03** at limit **
  15  norm          .10000E-03    8.1608        .31027E-03** at limit **
  16  Prefactor     .10000E-03    80.150        .36285E-03** at limit **
  17  Prefactor     .10000E-03    43.714        .36285E-03** at limit **
  18  Prefactor     6.6119        11.724        .62223E-05   -.25579E-05
  19  Normalizat    .51336E-01    .97940        .22976E-02    .55914E-06
  20  Prefactor     1.2303        .22782        .34298E-04   -.73918E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.1146
  Prefactor  = 0.748787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.3158
  Prefactor  = 12.5745
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.61186
  Normalizat = 0.0513361
  Prefactor  = 1.23035
 **********
 **   18 **HESSE 
 **********

 FCN=   3092.705     FROM HESSE     STATUS=OK           273 CALLS     3899 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.132        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.115        38.754        .58374E-06   -1.4610    
   3  Prefactor     .74879        .25395        .37038E-06   -1.5535    
   4  Prefactor     .10000E-03    52.940        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4195        .50405E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.787        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.094        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.884        11.544        .70051E-06   -1.4794    
   9  Prefactor     .10000E-03    25.161        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.388        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    99.306        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.316        28.493        .69361E-06   -1.4784    
  13  Prefactor     12.574        25.685        .90246E-06   -1.4999    
  14  Prefactor     .10000E-03    35.907        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.1608        .62054E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    80.151        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.714        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6119        11.670        .12445E-05   -1.5194    
  19  Normalizat    .51336E-01    .91348        .91902E-04   -1.4421    
  20  Prefactor     1.2303        .22113        .68595E-05   -.85403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08999e-13
Minuit parameter uncertainties:
  1  2.30498e-07
  2  38.7862
  3  0.253955
  4  7.70586e-07
  5  1.63591e-07
  6  1.36346e-06
  7  8.40599e-08
  8  11.5449
  9  1.35889e-06
  10  2.49548e-06
  11  9.97955e-08
  12  28.511
  13  25.7078
  14  8.15422e-07
  15  1.02517e-07
  16  2.32914e-07
  17  5.54153e-07
  18  11.6736
  19  0.395695
  20  0.221292
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.230e+00  2.213e-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:  5.134e-02  3.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 3.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2711/likelihoodResults_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.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): 0
logL (Free Index) = 3092.63726916
delta logL = 0.0673632196076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3092.63401535
delta logL = 0.0706170285243

Fit tolerance = 1e-08

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

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

 FCN=   3092.634     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      273 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.641        1144.8        .23839E-02   -.24326E-04
   2  Index         2.4350        5.3547        .22785        .12175E-04
   3  Normalizat    .62299E-01    .13376        .22132        .69477E-04
   4  Prefactor     1.2218        .11704        .34137E-01    .28550E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6412
  Index      = 2.43503
  Normalizat = 0.0622987
  Prefactor  = 1.22178
 **********
 **   18 **HESSE 
 **********

 FCN=   3092.634     FROM HESSE     STATUS=OK            35 CALLS      308 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.641        25.478        .95358E-04   -1.4868    
   2  Index         2.4350        .84646        .82575E-02   -.53867    
   3  Normalizat    .62299E-01    .78079        .10712E-01   -1.4260    
   4  Prefactor     1.2218        .24794        .17195E-03   -.85664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90996e-11
Minuit parameter uncertainties:
  1  25.494
  2  0.852042
  3  0.410751
  4  0.248175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2711': 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) = 3092.63401527
delta logL = 0.0706171076363

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.222e+00  2.482e-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:  6.230e-02  4.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/2711/cmap_HighResolution_620870401_621129601_4FGL_J2330.5+1102_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-02', job_status='DONE', photon_flux_upper_limit='3.76e-07', time_completed='2021-09-29 22:50:26.050757', job_id='2711', GAL2='1.22', fit_tolerance='1e-08', EG2='0.06', EG='0.05', time_epoch_completed='1632981026.05', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='7.06e-02', ts2='0.63', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1472' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 2711: <4FGL_J2330.5+1102_daily_bin1472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1472 352.629 11.0479 620870401 621129601 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 :                                   488.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            615 sec.

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

