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


Performing analysis on: 4FGL_J0332.1-1123_daily_bin1495
RA = 53.0335, Dec = -11.3949
tmin = 626832001, tmax = 627091201
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='613733', job_status='RUN', time_executed='2021-08-18 15:56:07.922001', time_epoch_executed='1629327367.92' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613733/ft1_4FGL_J0332.1-1123_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613733/ft1_4FGL_J0332.1-1123_daily_bin1495.fits outfile=/scratch/kocevski/613733/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1495.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=626832001.0 tmax=627091201.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 16.75
user 2.79
sys 8.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.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/613733/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.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 15.39
user 0.35
sys 8.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/613733/ltcube_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.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/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits
.....................!
real 29.23
user 14.12
sys 9.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/613733/ltcube_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.fits outfile=/scratch/kocevski/613733/expmap_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.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/613733/ltcube_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.fits
.....................!
real 221.29
user 185.28
sys 14.81

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0332.1-1123 @ 53.0335 -11.3949

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits scfile=/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits outfile=/scratch/kocevski/613733/cmap_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.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=53.0335 yref=-11.3949 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 8.47
user 0.38
sys 7.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits scfile=/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits outfile=/scratch/kocevski/613733/cmap_HighResolution_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.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=53.0335 yref=-11.3949 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 8.58
user 0.39
sys 7.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/613733/Model_4FGL_J0332.1-1123_daily_bin1495.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/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits.....................!
real 43.79
user 28.74
sys 11.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits', '/scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits', expMap='/scratch/kocevski/613733/expmap_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.fits', expCube='/scratch/kocevski/613733/ltcube_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/613733/Model_4FGL_J0332.1-1123_daily_bin1495.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0332.1-1123'

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.293e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/613733/ft1_filtered_4FGL_J0332.1-1123_daily_bin1495.fits
Spacecraft file(s): /scratch/kocevski/613733/ft2_4FGL_J0332.1-1123_daily_bin1495.fits
Exposure map: /scratch/kocevski/613733/expmap_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.fits
Exposure cube: /scratch/kocevski/613733/ltcube_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/613733/Model_4FGL_J0332.1-1123_daily_bin1495.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) = 1828.36078915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10956E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.157       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9643       1.0000         .10000E-03   10000.    
    11 'norm      '    .12565E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94907       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .13825E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .19797       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   1828.283     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     2682 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.822        27.163        .92422E-04   -.12793E-04
   2  Prefactor     .10000E-03    170.04        .18142E-02** at limit **
   3  Prefactor     .10000E-03    78.892        .18142E-02** at limit **
   4  Prefactor     .10000E-03    16.894        .17152E-02** at limit **
   5  Prefactor     12.402        18.692        .11373E-03   -.59730E-05
   6  Prefactor     21.713        1008.0        .86164E-04    .46708E-05
   7  Prefactor     .10000E-03    3.1902        .74542E-03** at limit **
   8  Prefactor     53.680        45.852        .54751E-04    .97593E-05
   9  Prefactor     37.158        36.489        .65749E-04   -.47775E-04
  10  Prefactor     7.8663        126.90        .14208E-03   -.45050E-04
  11  norm          .10000E-03    17.090        .24351E-02** at limit **
  12  Prefactor     .94913        2.3079        .10612E-02   -.63202E-03
  13  Prefactor     .10008E-03    136.48        .18142E-02** at limit **
  14  norm          .10000E-03    1.1593        .88223E-04** at limit **
  15  Prefactor     6.6086        73.890        .15665E-03   -.80994E-04
  16  Prefactor     .10000E-03    2.0136        .59107E-03** at limit **
  17  Prefactor     .10000E-03    6.9553        .11003E-02** at limit **
  18  norm          .10000E-03    59.285        .18142E-02** at limit **
  19  Normalizat    .19723        .44158        .55088E-03   -.38127E-04
  20  Prefactor     1.2768        .29037        .17813E-03   -.44036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4017
  Prefactor  = 21.7131
  Prefactor  = 0.0001
  Prefactor  = 53.6803
  Prefactor  = 37.1582
  Prefactor  = 7.86635
  norm       = 0.0001
  Prefactor  = 0.949133
  Prefactor  = 0.000100083
  norm       = 0.0001
  Prefactor  = 6.6086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.197225
  Prefactor  = 1.27681
 **********
 **   18 **HESSE 
 **********

 FCN=   1828.283     FROM HESSE     STATUS=OK           273 CALLS     2955 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.822        27.140        .36969E-05   -1.4840    
   2  Prefactor     .10000E-03    170.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    78.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.896        .34303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.402        18.689        .45490E-05   -1.5004    
   6  Prefactor     21.713        1007.7        .17233E-04   -1.4776    
   7  Prefactor     .10000E-03    3.1902        .14908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     53.680        45.794        .21900E-05   -1.4241    
   9  Prefactor     37.158        36.487        .13150E-04   -1.4488    
  10  Prefactor     7.8663        126.78        .56830E-05   -1.5147    
  11  norm          .10000E-03    17.154        .48702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94913        2.3057        .42448E-04   -1.5513    
  13  Prefactor     .10008E-03    136.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1593        .17645E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6086        73.758        .62659E-05   -1.5194    
  16  Prefactor     .10000E-03    2.0136        .11821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9555        .22006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    59.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .19723        .44034        .22035E-04   -1.2961    
  20  Prefactor     1.2768        .28985        .71254E-05   -.83999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18345e-09
Minuit parameter uncertainties:
  1  27.158
  2  0.0001005
  3  0.00028625
  4  9.37199e-06
  5  18.6979
  6  301.402
  7  4.99279e-06
  8  45.8238
  9  36.5086
  10  63.3195
  11  0.000138444
  12  2.30593
  13  0.00673658
  14  1.56817e-06
  15  44.2247
  16  1.57436e-05
  17  4.85222e-05
  18  4.30283e-05
  19  0.448488
  20  0.290216
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  3.716e+01  3.651e+01  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.277e+00  2.902e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.972e-01  4.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 53.033 -11.395
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 1.17e-07
Energy Flux (Fixed Index): 3.97e-05 +/- 3.90e-05

TS (Fixed Index): 1.76
Ra Dec: 53.033 -11.395
Photon Flux Upper Limit: 3.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613733/likelihoodResults_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.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) = 1828.10208586
delta logL = 0.180944765293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1828.10008091
delta logL = 0.182949717134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.573       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8470       1.0000          .0000       10.000    
     3 'Normalizat'    .16760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2878       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   1828.100     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      295 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.605        35.776        .84308E-04    .57580E-04
   2  Index         2.8477        .86471        .37804E-02    .20058E-04
   3  Normalizat    .16749        .33727        .59540E-03   -.19777E-04
   4  Prefactor     1.2872        .26695        .17733E-03    .10031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6052
  Index      = 2.8477
  Normalizat = 0.167493
  Prefactor  = 1.28719
 **********
 **   18 **HESSE 
 **********

 FCN=   1828.100     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.605        32.887        .33723E-05   -1.4757    
   2  Index         2.8477        .79464        .15122E-03   -.44500    
   3  Normalizat    .16749        .33634        .23816E-04   -1.3190    
   4  Prefactor     1.2872        .26624        .35467E-04   -.83689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72148e-10
Minuit parameter uncertainties:
  1  32.9138
  2  0.7988
  3  0.340572
  4  0.266526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613733': 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) = 1828.10006991
delta logL = 0.18296071575

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  2.261e+01  3.291e+01  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.848e+00  7.988e-01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.287e+00  2.665e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.675e-01  3.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 53.033 -11.395
Photon Index (Free Index): 2.85 +/- 0.80
Photon Flux (Free Index): 1.76e-07 +/- 1.71e-07
Energy Flux (Free Index): 3.83e-05 +/- 3.32e-05

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/613733/cmap_HighResolution_626832001_627091201_4FGL_J0332.1-1123_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-02', comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='3.83e-05', photon_flux_error='1.17e-07', dlogl='1.83e-01', energy_flux='3.97e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-08-18 16:05:50.458300', photon_index_error2='0.80', photon_index2='2.85', ts='1.76', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='3.81e-07', energy_flux_error2='3.32e-05', EG='0.20', time_epoch_completed='1629327950.46', return_code='0', job_id='613733', GAL2='1.29', EG2='0.17', return_code2='0', energy_flux_error='3.90e-05', photon_flux_error2='1.71e-07', ts2='2.15', photon_index='2.39' WHERE bin_id='1495' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 16:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 613733: <4FGL_J0332.1-1123_daily_bin1495> in cluster <slac> Done

Job <4FGL_J0332.1-1123_daily_bin1495> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Aug 18 15:52:21 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 15:52:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 15:52:23 2021
Terminated at Wed Aug 18 16:05:51 2021
Results reported at Wed Aug 18 16:05:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0332.1-1123_daily_bin1495 53.0335 -11.3949 626832001 627091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0332.1-1123 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             197.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

