/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7632
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0332.1-1123_daily_bin1353
RA = 53.0335, Dec = -11.3949
tmin = 590025601, tmax = 590284801
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='610140', job_status='RUN', time_executed='2021-08-18 15:47:22.586528', time_epoch_executed='1629326842.59' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610140/ft1_4FGL_J0332.1-1123_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610140/ft1_4FGL_J0332.1-1123_daily_bin1353.fits outfile=/scratch/kocevski/610140/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1353.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=590025601.0 tmax=590284801.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.07
user 3.71
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.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/610140/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1353.fits evtable="EVENTS" outfile="/scratch/kocevski/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.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 2.62
user 0.33
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/610140/ltcube_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.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/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits
.....................!
real 13.74
user 11.54
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/610140/ltcube_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.fits outfile=/scratch/kocevski/610140/expmap_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.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/610140/ltcube_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.fits
.....................!
real 198.23
user 185.46
sys 4.31

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/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits scfile=/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits outfile=/scratch/kocevski/610140/cmap_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.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 0.79
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits scfile=/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits outfile=/scratch/kocevski/610140/cmap_HighResolution_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.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 0.78
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/610140/Model_4FGL_J0332.1-1123_daily_bin1353.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/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits.....................!
real 66.75
user 64.89
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits', '/scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits', expMap='/scratch/kocevski/610140/expmap_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.fits', expCube='/scratch/kocevski/610140/ltcube_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/610140/Model_4FGL_J0332.1-1123_daily_bin1353.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/610140/ft1_filtered_4FGL_J0332.1-1123_daily_bin1353.fits
Spacecraft file(s): /scratch/kocevski/610140/ft2_4FGL_J0332.1-1123_daily_bin1353.fits
Exposure map: /scratch/kocevski/610140/expmap_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.fits
Exposure cube: /scratch/kocevski/610140/ltcube_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/610140/Model_4FGL_J0332.1-1123_daily_bin1353.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) = 5185.34976924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.770       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56516       1.0000         .10000E-03   10000.    
     6 'Prefactor '    119.20       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8737       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.691       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1406       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.756       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4989       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.462       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.046       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2163       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71330       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.

 FCN=   5185.314     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2052 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.768        13.216        .38710E-05   -.72966E-04
   2  Prefactor     .10000E-03    124.20        .84808E-07** at limit **
   3  Prefactor     .10000E-03    7.9271        .15189E-05** at limit **
   4  Prefactor     .10000E-03    5.8030        .27916E-07** at limit **
   5  Prefactor     .56504        2.6711       -.16531E-05   -.13695E-02
   6  Prefactor     119.18        146.16       -.16711E-04   -.24870E-05
   7  Prefactor     3.8736        4.9923       -.79167E-06   -.26311E-03
   8  Prefactor     11.688        22.807        .42832E-05   -.23230E-04
   9  Prefactor     7.1389        11.958        .62165E-05   -.55665E-04
  10  Prefactor     58.748        55.268       -.65616E-05   -.43799E-05
  11  norm          4.4836        1.8394        .70976E-07   -.17615E-03
  12  Prefactor     1.4989        1.8302        .15901E-06   -.71288E-04
  13  Prefactor     32.435        47.732       -.32146E-04   -.33757E-04
  14  norm          .10000E-03    .54451        .55758E-08** at limit **
  15  Prefactor     29.065        50.315        .33569E-04    .13018E-04
  16  Prefactor     .10000E-03    2.3419       -.10601E-06** at limit **
  17  Prefactor     .10000E-03    8.4110       -.14735E-05** at limit **
  18  norm          .10000E-03    7.1507       -.47071E-06** at limit **
  19  Normalizat    1.2165        .21024       -.46273E-05    .22138E-03
  20  Prefactor     .71324        .13206        .17214E-05   -.21549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.565044
  Prefactor  = 119.181
  Prefactor  = 3.87357
  Prefactor  = 11.6882
  Prefactor  = 7.13889
  Prefactor  = 58.748
  norm       = 4.48356
  Prefactor  = 1.49885
  Prefactor  = 32.4348
  norm       = 0.0001
  Prefactor  = 29.0654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.21647
  Prefactor  = 0.713236
 **********
 **   18 **HESSE 
 **********

 FCN=   5185.314     FROM HESSE     STATUS=OK           291 CALLS     2343 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.768        13.317        .11209E-03   -1.4993    
   2  Prefactor     .10000E-03    124.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8061        .16942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56504        2.6130        .23059E-03   -1.5558    
   6  Prefactor     119.18        146.12        .18429E-03   -1.3520    
   7  Prefactor     3.8736        4.9611        .16707E-03   -1.5314    
   8  Prefactor     11.688        22.822        .11716E-03   -1.5024    
   9  Prefactor     7.1389        11.946        .15011E-03   -1.5174    
  10  Prefactor     58.748        55.225        .52339E-04   -1.4174    
  11  norm          4.4836        1.8398        .59396E-04   -1.5284    
  12  Prefactor     1.4989        1.8145        .10424E-03   -1.5463    
  13  Prefactor     32.435        47.512        .70329E-04   -1.4568    
  14  norm          .10000E-03    .55007        .51846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.065        50.100        .74338E-04   -1.4629    
  16  Prefactor     .10000E-03    2.3797        .10756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.1507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2165        .24483        .25254E-03   -.86095    
  20  Prefactor     .71324        .15278        .21703E-03   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83284e-09
Minuit parameter uncertainties:
  1  13.3198
  2  2.9906e-05
  3  1.342e-05
  4  3.80653e-07
  5  2.43017
  6  146.561
  7  4.9616
  8  22.8394
  9  11.9505
  10  55.2733
  11  1.83986
  12  1.81453
  13  47.5678
  14  1.20635e-06
  15  50.1729
  16  1.89484e-05
  17  0.000120418
  18  3.36444e-07
  19  0.245064
  20  0.152873
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  7.139e+00  1.195e+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:  7.132e-01  1.529e-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.216e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 53.033 -11.395
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/610140/likelihoodResults_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.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) = 5185.2956257
delta logL = 0.0183222459809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5185.02494771
delta logL = 0.289000232273

Fit tolerance = 1e-08

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

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

 FCN=   5185.025     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      267 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11991        2.3554        .57948E-02   -.47071E-03
   2  Index         4.7564        2.8419        .10173        .46666E-04
   3  Normalizat    1.1667        .45810E-01    .58130E-01   -.82323E-04
   4  Prefactor     .73853        .31151E-01    .42911E-01   -.52750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.119906
  Index      = 4.75638
  Normalizat = 1.16665
  Prefactor  = 0.738534
 **********
 **   18 **HESSE 
 **********

 FCN=   5185.025     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      302 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11991        6.8464        .26679E-03   -1.5639    
   2  Index         4.7564        7.3231        .52613E-02   -.48743E-01
   3  Normalizat    1.1667        .16831        .25707E-03   -.87640    
   4  Prefactor     .73853        .11259        .21375E-03   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.29173e-10
Minuit parameter uncertainties:
  1  1.81156
  2  6.5509
  3  0.168386
  4  0.112622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610140': 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) = 5185.02494661
delta logL = 0.289001330102

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.199e-01  1.812e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  4.756e+00  6.551e+00  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:  7.385e-01  1.126e-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.167e+00  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 53.033 -11.395
Photon Index (Free Index): 4.76 +/- 6.55
Photon Flux (Free Index): 6.05e-08 +/- 6.14e-08
Energy Flux (Free Index): 8.22e-06 +/- 1.02e-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/610140/cmap_HighResolution_590025601_590284801_4FGL_J0332.1-1123_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', comment='SUCCESS', energy_flux2='8.22e-06', dlogl='2.89e-01', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-08-18 15:57:03.254998', photon_index_error2='6.55', photon_index2='4.76', ts='0.47', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.02e-05', EG='1.22', time_epoch_completed='1629327423.26', return_code='0', job_id='610140', GAL2='0.74', EG2='1.17', return_code2='102', photon_flux_error2='6.14e-08', ts2='1.10', photon_index='2.39' WHERE bin_id='1353' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 15:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 610140: <4FGL_J0332.1-1123_daily_bin1353> in cluster <slac> Done

Job <4FGL_J0332.1-1123_daily_bin1353> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Aug 18 15:41:47 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 15:41:49 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:41:49 2021
Terminated at Wed Aug 18 15:57:04 2021
Results reported at Wed Aug 18 15:57:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0332.1-1123_daily_bin1353 53.0335 -11.3949 590025601 590284801 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 :                                   560.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

