/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 7 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin392
RA = 352.629, Dec = 11.0479
tmin = 340934401, tmax = 341193601
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='997228', job_status='RUN', time_executed='2021-09-29 22:20:34.652099', time_epoch_executed='1632979234.65' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997228/ft1_4FGL_J2330.5+1102_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997228/ft2_4FGL_J2330.5+1102_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997228/ft1_4FGL_J2330.5+1102_daily_bin392.fits outfile=/scratch/kocevski/997228/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin392.fits ra=352.629 dec=11.0479 rad=12.0 tmin=340934401.0 tmax=341193601.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.39
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997228/ft1_filtered_4FGL_J2330.5+1102_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/997228/ft2_4FGL_J2330.5+1102_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/997228/ltcube_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.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/997228/ft2_4FGL_J2330.5+1102_daily_bin392.fits
.....................!
real 11.86
user 11.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997228/ft1_filtered_4FGL_J2330.5+1102_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/997228/ft2_4FGL_J2330.5+1102_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/997228/ltcube_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.fits outfile=/scratch/kocevski/997228/expmap_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.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/997228/ltcube_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.fits
.....................!
real 191.25
user 185.27
sys 5.66

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/997228/ft1_filtered_4FGL_J2330.5+1102_daily_bin392.fits scfile=/scratch/kocevski/997228/ft2_4FGL_J2330.5+1102_daily_bin392.fits outfile=/scratch/kocevski/997228/cmap_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997228/ft1_filtered_4FGL_J2330.5+1102_daily_bin392.fits scfile=/scratch/kocevski/997228/ft2_4FGL_J2330.5+1102_daily_bin392.fits outfile=/scratch/kocevski/997228/cmap_HighResolution_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.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/997228/ft1_filtered_4FGL_J2330.5+1102_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/997228/ft2_4FGL_J2330.5+1102_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997228/Model_4FGL_J2330.5+1102_daily_bin392.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/997228/ft1_filtered_4FGL_J2330.5+1102_daily_bin392.fits.....................!
real 70.81
user 69.49
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.556       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58724       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1348       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.949       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.5954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46915E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    31.533       1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.461       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86819       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90087       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=   6639.986     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     2710 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.549        24.696        .77739E-04   -.38754E-04
   2  Prefactor     .55455        49.502        .45206E-02    .10971E-03
   3  Prefactor     .10000E-03    .36688E-01    .28455E-03** at limit **
   4  Prefactor     .10000E-03    23.960        .18142E-02** at limit **
   5  Prefactor     1.1318        8.1918        .43691E-03   -.19880E-04
   6  Prefactor     .10000E-03    5.2320        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.9407        .18142E-02** at limit **
   8  Prefactor     17.946        8.4925        .94535E-04   -.13108E-04
   9  Prefactor     .10000E-03    14.932        .18142E-02** at limit **
  10  Prefactor     .10000E-03    9.5973        .18142E-02** at limit **
  11  Prefactor     .10000E-03    46.568        .18142E-02** at limit **
  12  norm          4.5958        9.9387        .93884E-03   -.58113E-04
  13  Prefactor     .10000E-03    6.7581        .18142E-02** at limit **
  14  Prefactor     .10000E-03    31.161        .10114    ** at limit **
  15  norm          31.532        19.097        .71354E-04    .23899E-05
  16  Prefactor     50.252        38.212        .56573E-04   -.15474E-04
  17  Prefactor     28.458        22.528        .75097E-04   -.15744E-04
  18  Prefactor     .10000E-03    2.7674        .13193E-02** at limit **
  19  Normalizat    .86822        .22513        .30849E-03   -.92022E-04
  20  Prefactor     .90090        .13410        .18606E-03   -.61041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5486
  Prefactor  = 0.554554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.13179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.59582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.5322
  Prefactor  = 50.2519
  Prefactor  = 28.4582
  Prefactor  = 0.0001
  Normalizat = 0.868219
  Prefactor  = 0.900898
 **********
 **   18 **HESSE 
 **********

 FCN=   6639.986     FROM HESSE     STATUS=OK           285 CALLS     2995 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.549        24.695        .31095E-05   -1.4677    
   2  Prefactor     .55455        50.053        .18082E-03   -1.5559    
   3  Prefactor     .10000E-03    .36697E-01    .56910E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1318        8.1838        .17476E-04   -1.5495    
   6  Prefactor     .10000E-03    5.2329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.946        8.4921        .37814E-05   -1.4860    
   9  Prefactor     .10000E-03    14.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5958        9.9129        .37554E-04   -1.5279    
  13  Prefactor     .10000E-03    6.7604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.662        .10645       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.532        19.096        .28542E-05   -1.4584    
  16  Prefactor     50.252        38.203        .22629E-05   -1.4289    
  17  Prefactor     28.458        22.528        .30039E-05   -1.4641    
  18  Prefactor     .10000E-03    2.7678        .26385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86822        .22524        .12339E-04   -.97586    
  20  Prefactor     .90090        .13417        .74424E-05   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24215e-10
Minuit parameter uncertainties:
  1  24.7045
  2  10.5451
  3  2.3319e-07
  4  6.13361e-05
  5  6.08772
  6  4.36751e-06
  7  1.50256e-05
  8  8.49268
  9  1.90277e-05
  10  4.54302e-06
  11  0.000202912
  12  9.91641
  13  1.91017e-06
  14  0.000182016
  15  19.0998
  16  38.2213
  17  22.5346
  18  2.23914e-06
  19  0.225483
  20  0.134223
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.009e-01  1.342e-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.682e-01  2.255e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997228/likelihoodResults_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.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) = 6639.98692675
delta logL = -0.000705679618477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6639.98622109
delta logL = -1.56969690579e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7753       1.0000          .0000       10.000    
     3 'Normalizat'    .86824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90091       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=   6639.986     FROM MIGRAD    STATUS=FAILED        88 CALLS      241 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    139.75        .18142E-02** at limit **
   2  Index         2.6980        8.1926        .50000        .13567E-04
   3  Normalizat    .86822        .22087E-01    .30849E-03    .44408E-04
   4  Prefactor     .90090        .13643E-01    .18606E-03    .49432E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6639.986     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      376 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    139.75        .39762E-03** at limit **
   2  Index         2.6980        8.1926        .50994E-03    .13567E-04
   3  Normalizat    .86822        .22087E-01    .49550E-05    .44408E-04
   4  Prefactor     .90090        .13643E-01    .18996E-05    .49432E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6639.986     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      421 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    264.95        .36285E-02** at limit **
   2  Index         2.1949        7.4309        .50000       -.11410E-06
   3  Normalizat    .86822        .29130E-01    .12339E-04   -.55574E-03
   4  Prefactor     .90090        .17993E-01    .74424E-05   -.88415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19489
  Normalizat = 0.868219
  Prefactor  = 0.900897
 **********
 **   18 **HESSE 
 **********

 FCN=   6639.986     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1041.6        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1949        6.0663        .50000       -.59562    
   3  Normalizat    .86822        .69677E-01    .24679E-05   -.97586    
   4  Prefactor     .90090        .43042E-01    .14885E-05   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8085e-09
Minuit parameter uncertainties:
  1  6.60144e-05
  2  1277.68
  3  0.0696844
  4  0.0430436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997228': 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): 102
logL (Free Index) = 6639.98621996
delta logL = 1.11469489639e-06

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  6.601e-05  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.195e+00  1.278e+03  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.009e-01  4.304e-02  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.682e-01  6.968e-02  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/997228/cmap_HighResolution_340934401_341193601_4FGL_J2330.5+1102_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-29 22:31:19.392532', job_id='997228', GAL2='0.90', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632979879.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='392' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:31:19 PDT 2021


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

Job <4FGL_J2330.5+1102_daily_bin392> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:20:17 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:20:18 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:20:18 2021
Terminated at Wed Sep 29 22:31:20 2021
Results reported at Wed Sep 29 22:31:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin392 352.629 11.0479 340934401 341193601 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

