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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1419
RA = 352.629, Dec = 11.0479
tmin = 607132801, tmax = 607392001
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='1694', job_status='RUN', time_executed='2021-09-29 22:38:45.036838', time_epoch_executed='1632980325.04' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1694

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1694/ft1_4FGL_J2330.5+1102_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1694/ft2_4FGL_J2330.5+1102_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1694/ft1_4FGL_J2330.5+1102_daily_bin1419.fits outfile=/scratch/kocevski/1694/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1419.fits ra=352.629 dec=11.0479 rad=12.0 tmin=607132801.0 tmax=607392001.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.31
user 5.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1694/ft2_4FGL_J2330.5+1102_daily_bin1419.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/1694/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1419.fits evtable="EVENTS" outfile="/scratch/kocevski/1694/ft1_filtered_4FGL_J2330.5+1102_daily_bin1419.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1694/ft1_filtered_4FGL_J2330.5+1102_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/1694/ft2_4FGL_J2330.5+1102_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/1694/ltcube_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.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/1694/ft2_4FGL_J2330.5+1102_daily_bin1419.fits
.....................!
real 12.66
user 12.35
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1694/ft1_filtered_4FGL_J2330.5+1102_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/1694/ft2_4FGL_J2330.5+1102_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/1694/ltcube_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.fits outfile=/scratch/kocevski/1694/expmap_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.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/1694/ltcube_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.fits
.....................!
real 191.84
user 186.01
sys 5.52

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/1694/ft1_filtered_4FGL_J2330.5+1102_daily_bin1419.fits scfile=/scratch/kocevski/1694/ft2_4FGL_J2330.5+1102_daily_bin1419.fits outfile=/scratch/kocevski/1694/cmap_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.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/1694/ft1_filtered_4FGL_J2330.5+1102_daily_bin1419.fits scfile=/scratch/kocevski/1694/ft2_4FGL_J2330.5+1102_daily_bin1419.fits outfile=/scratch/kocevski/1694/cmap_HighResolution_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24310       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2181       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3435       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.334       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.335       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.329       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13614E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4599       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.591       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26505E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86062       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83860       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=   5647.951     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2089 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.793       -.55468E-08** at limit **
   2  Prefactor     .10000E-03    9.9012        .13179E-08** at limit **
   3  Prefactor     .24310        .14657        .18412E-07    .13809E-03
   4  Prefactor     2.0294        222.49        .79909E-05   -.14260E-04
   5  Prefactor     18.533        11.368        .76468E-07    .54208E-04
   6  Prefactor     .10000E-03    19.251        .18698E-06** at limit **
   7  Prefactor     7.3409        11.853        .65565E-07   -.27281E-04
   8  Prefactor     .12358        6.5942        .39638E-06   -.50716E-03
   9  Prefactor     23.322        13.009        .22739E-06   -.59811E-04
  10  Prefactor     11.347        25.044        .66897E-05   -.85974E-05
  11  Prefactor     .10000E-03    10.475        .29019E-07** at limit **
  12  norm          11.325        14.980       -.17471E-05   -.10292E-04
  13  Prefactor     3.4958        11.637        .46202E-05    .78736E-04
  14  Prefactor     .10000E-03    26.415       -.11693E-06** at limit **
  15  norm          3.4919        12.301        .24065E-05    .38347E-04
  16  Prefactor     7.4215        58.652        .18313E-05   -.94806E-05
  17  Prefactor     46.572        34.261        .31105E-07   -.13165E-04
  18  Prefactor     .10000E-03    4.1456        .18648E-06** at limit **
  19  Normalizat    .86060        .22180       -.11125E-05    .47028E-04
  20  Prefactor     .83871        .12412       -.41794E-06    .30040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.243102
  Prefactor  = 2.02938
  Prefactor  = 18.5327
  Prefactor  = 0.0001
  Prefactor  = 7.34088
  Prefactor  = 0.123581
  Prefactor  = 23.3225
  Prefactor  = 11.3473
  Prefactor  = 0.0001
  norm       = 11.3252
  Prefactor  = 3.49575
  Prefactor  = 0.0001
  norm       = 3.49194
  Prefactor  = 7.42153
  Prefactor  = 46.5718
  Prefactor  = 0.0001
  Normalizat = 0.860603
  Prefactor  = 0.838706
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.951     FROM HESSE     STATUS=OK           303 CALLS     2392 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .24310        .14409        .21085E-04   -1.5609    
   4  Prefactor     2.0294        220.94        .27613E-03   -1.5423    
   5  Prefactor     18.533        11.331        .93022E-04   -1.4847    
   6  Prefactor     .10000E-03    20.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3409        11.845        .14801E-03   -1.5166    
   8  Prefactor     .12358        59.315        .33681E-02   -1.5638    
   9  Prefactor     23.322        12.991        .82923E-04   -1.4742    
  10  Prefactor     11.347        26.181        .11899E-03   -1.5034    
  11  Prefactor     .10000E-03    10.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.325        15.022        .11902E-03   -1.5035    
  13  Prefactor     3.4958        11.763        .10815E-02   -1.5334    
  14  Prefactor     .10000E-03    26.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4919        12.207        .10820E-02   -1.5334    
  16  Prefactor     7.4215        58.493        .14684E-03   -1.5163    
  17  Prefactor     46.572        34.335        .58742E-04   -1.4342    
  18  Prefactor     .10000E-03    10.990        .29659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86060        .25685        .31039E-03   -.97859    
  20  Prefactor     .83871        .14538        .18974E-03   -.98317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85155e-09
Minuit parameter uncertainties:
  1  2.14584e-06
  2  6.92231e-06
  3  0.144086
  4  42.5101
  5  11.3319
  6  1.10169e-05
  7  11.8491
  8  5.41808
  9  12.9927
  10  26.2075
  11  1.90034e-06
  12  15.0274
  13  11.7703
  14  3.16323e-05
  15  12.2153
  16  41.7264
  17  34.3496
  18  7.80223e-05
  19  0.257217
  20  0.14545
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.496e+00  1.177e+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:  8.387e-01  1.455e-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.606e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/1694/likelihoodResults_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.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) = 5647.72504492
delta logL = 0.226249393498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5647.72402509
delta logL = 0.227269223628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7797       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0437       1.0000          .0000       10.000    
     3 'Normalizat'    .81682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85572       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=   5647.724     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      248 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7812        53.487        .78433E-02    .66794E-03
   2  Index         4.0432        6.9103        .20537        .71673E-04
   3  Normalizat    .81683        .50060E-01    .71798E-01    .19602E-04
   4  Prefactor     .85571        .30310E-01    .44438E-01    .21432E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78118
  Index      = 4.04317
  Normalizat = 0.816826
  Prefactor  = 0.855706
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.724     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7812        145.73        .12520E-03   -1.5441    
   2  Index         4.0432        5.4529        .92223E-02   -.19255    
   3  Normalizat    .81683        .24000        .31773E-03   -.99448    
   4  Prefactor     .85571        .14804        .18800E-03   -.97706    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.56982e-07
Minuit parameter uncertainties:
  1  32.3029
  2  12.5992
  3  0.240311
  4  0.148106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1694': 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) = 5647.72402504
delta logL = 0.227269268046

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.781e+00  3.230e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  4.043e+00  1.260e+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:  8.557e-01  1.481e-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.168e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/1694/cmap_HighResolution_607132801_607392001_4FGL_J2330.5+1102_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-29 22:48:46.993749', job_id='1694', GAL2='0.86', fit_tolerance='1e-08', EG2='0.82', EG='0.86', time_epoch_completed='1632980926.99', return_code2='102', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.27e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1419' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:48:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 1694: <4FGL_J2330.5+1102_daily_bin1419> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1419 352.629 11.0479 607132801 607392001 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 :                                   560.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

